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}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Contains the data for a feedback object within the system
    */
    public static class Feedback
    {
        public String ObjectId = null;
        public String VersionId = null;
        public String BasedOn = null;
        public Date SubmitDate = null;
        public String Description = null;
        public DomainItem User = null;
        public String Workspace = null;
        
        public String getObjectId() { return ObjectId; }
        public Feedback setObjectId(String value) { this.ObjectId = value; return this; }
        public String getVersionId() { return VersionId; }
        public Feedback setVersionId(String value) { this.VersionId = value; return this; }
        public String getBasedOn() { return BasedOn; }
        public Feedback setBasedOn(String value) { this.BasedOn = value; return this; }
        public Date getSubmitDate() { return SubmitDate; }
        public Feedback setSubmitDate(Date value) { this.SubmitDate = value; return this; }
        public String getDescription() { return Description; }
        public Feedback setDescription(String value) { this.Description = value; return this; }
        public DomainItem getUser() { return User; }
        public Feedback setUser(DomainItem value) { this.User = value; return this; }
        public String getWorkspace() { return Workspace; }
        public Feedback setWorkspace(String value) { this.Workspace = value; return this; }
    }

    public static class DomainItem
    {
        public String Workspace = null;
        public String ObjectId = null;
        public String VersionId = null;
        public String LastUpdated = null;
        
        public String getWorkspace() { return Workspace; }
        public DomainItem setWorkspace(String value) { this.Workspace = value; return this; }
        public String getObjectId() { return ObjectId; }
        public DomainItem setObjectId(String value) { this.ObjectId = value; return this; }
        public String getVersionId() { return VersionId; }
        public DomainItem setVersionId(String value) { this.VersionId = value; return this; }
        public String getLastUpdated() { return LastUpdated; }
        public DomainItem setLastUpdated(String value) { this.LastUpdated = value; return this; }
    }

}

Java Feedback DTOs

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

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ObjectId: String,
	VersionId: String,
	BasedOn: String,
	SubmitDate: 0001-01-01,
	Description: String,
	User: 
	{
		Workspace: String,
		ObjectId: String,
		VersionId: String,
		LastUpdated: String
	},
	Workspace: String
}