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 .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
}