| GET,POST,PUT,DELETE,OPTIONS | /v1/JobStatus/{JobStatusID} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/JobStatus |
import Foundation
import ServiceStack
public class JobStatusRequest : Codable
{
public var jobStatusID:Int
public var jobStatus:[JobStatus] = []
required public init(){}
}
public class JobStatus : Codable
{
public var jobStatusID:Int16
public var statusName:String
public var statusDescription:String
public var progressionOrder:Int16
required public init(){}
}
public class JobStatusResponse : Codable
{
public var responseStatus:ResponseStatus
public var jobStatus:[JobStatus] = []
required public init(){}
}
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}]}