Field Squared API Services

<back to all web services

Feedback

Contains the data for a feedback object within the system

The following routes are available for this service:
GET,POST,PUT,DELETE/{Workspace}/Feedback/{ObjectId}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.Feedback;
using Field2Office.API.Model;

namespace Field2Office.API.Model
{
    public partial class DomainItem
    {
        public virtual string Workspace { get; set; }
        public virtual string ObjectId { get; set; }
        public virtual string VersionId { get; set; }
        public virtual string LastUpdated { get; set; }
    }

}

namespace Field2Office.API.Model.Feedback
{
    ///<summary>
    ///Contains the data for a feedback object within the system
    ///</summary>
    public partial class Feedback
    {
        public virtual string ObjectId { get; set; }
        public virtual string VersionId { get; set; }
        public virtual string BasedOn { get; set; }
        public virtual DateTime SubmitDate { get; set; }
        public virtual string Description { get; set; }
        public virtual DomainItem User { get; set; }
        public virtual string Workspace { get; set; }
    }

}

C# Feedback DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /{Workspace}/Feedback/{ObjectId} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<Feedback xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.Feedback">
  <BasedOn>String</BasedOn>
  <Description>String</Description>
  <ObjectId>String</ObjectId>
  <SubmitDate>0001-01-01T00:00:00</SubmitDate>
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/Field2Office.API.Model">
    <d2p1:LastUpdated>String</d2p1:LastUpdated>
    <d2p1:ObjectId>String</d2p1:ObjectId>
    <d2p1:VersionId>String</d2p1:VersionId>
    <d2p1:Workspace>String</d2p1:Workspace>
  </User>
  <VersionId>String</VersionId>
  <Workspace>String</Workspace>
</Feedback>