| GET,POST,PUT,DELETE,OPTIONS | /v1/JobStatus/{JobStatusID} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/JobStatus |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class JobStatusRequest
{
public Integer JobStatusID = null;
public ArrayList<JobStatus> JobStatus = new ArrayList<JobStatus>();
public Integer getJobStatusID() { return JobStatusID; }
public JobStatusRequest setJobStatusID(Integer value) { this.JobStatusID = value; return this; }
public ArrayList<JobStatus> getJobStatus() { return JobStatus; }
public JobStatusRequest setJobStatus(ArrayList<JobStatus> value) { this.JobStatus = value; return this; }
}
public static class JobStatus
{
public Short JobStatusID = null;
public String StatusName = null;
public String StatusDescription = null;
public Short ProgressionOrder = null;
public Short getJobStatusID() { return JobStatusID; }
public JobStatus setJobStatusID(Short value) { this.JobStatusID = value; return this; }
public String getStatusName() { return StatusName; }
public JobStatus setStatusName(String value) { this.StatusName = value; return this; }
public String getStatusDescription() { return StatusDescription; }
public JobStatus setStatusDescription(String value) { this.StatusDescription = value; return this; }
public Short getProgressionOrder() { return ProgressionOrder; }
public JobStatus setProgressionOrder(Short value) { this.ProgressionOrder = value; return this; }
}
public static class JobStatusResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<JobStatus> JobStatus = new ArrayList<JobStatus>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public JobStatusResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<JobStatus> getJobStatus() { return JobStatus; }
public JobStatusResponse setJobStatus(ArrayList<JobStatus> value) { this.JobStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/JobStatus/{JobStatusID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"JobStatusID":0,"JobStatus":[{"JobStatusID":0,"StatusName":"String","StatusDescription":"String","ProgressionOrder":0}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"JobStatus":[{"JobStatusID":0,"StatusName":"String","StatusDescription":"String","ProgressionOrder":0}]}