| GET,POST,PUT,DELETE,OPTIONS | /v1/JobType/{JobTypeID} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/JobType |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class JobTypeRequest
{
public Integer JobTypeID = null;
public ArrayList<JobType> JobType = new ArrayList<JobType>();
public Integer getJobTypeID() { return JobTypeID; }
public JobTypeRequest setJobTypeID(Integer value) { this.JobTypeID = value; return this; }
public ArrayList<JobType> getJobType() { return JobType; }
public JobTypeRequest setJobType(ArrayList<JobType> value) { this.JobType = value; return this; }
}
public static class JobType
{
public Integer JobTypeID = null;
public String JobTypeName = null;
public String JobTypeDescription = null;
public Short SortOrder = null;
public Integer getJobTypeID() { return JobTypeID; }
public JobType setJobTypeID(Integer value) { this.JobTypeID = value; return this; }
public String getJobTypeName() { return JobTypeName; }
public JobType setJobTypeName(String value) { this.JobTypeName = value; return this; }
public String getJobTypeDescription() { return JobTypeDescription; }
public JobType setJobTypeDescription(String value) { this.JobTypeDescription = value; return this; }
public Short getSortOrder() { return SortOrder; }
public JobType setSortOrder(Short value) { this.SortOrder = value; return this; }
}
public static class JobTypeResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<JobType> JobType = new ArrayList<JobType>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public JobTypeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<JobType> getJobType() { return JobType; }
public JobTypeResponse setJobType(ArrayList<JobType> value) { this.JobType = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/JobType/{JobTypeID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"JobTypeID":0,"JobType":[{"JobTypeID":0,"JobTypeName":"String","JobTypeDescription":"String","SortOrder":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"JobType":[{"JobTypeID":0,"JobTypeName":"String","JobTypeDescription":"String","SortOrder":0}]}