| GET,OPTIONS | /v1/pm/catalog |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class PmCatalogRequest
{
}
open class PmCatalogResponse
{
open var Statuses:ArrayList<PmCatalogItem> = ArrayList<PmCatalogItem>()
open var Crew:ArrayList<PmCatalogItem> = ArrayList<PmCatalogItem>()
open var Crews:ArrayList<PmCatalogCrew> = ArrayList<PmCatalogCrew>()
open var Equipment:ArrayList<PmCatalogItem> = ArrayList<PmCatalogItem>()
open var Materials:ArrayList<PmCatalogItem> = ArrayList<PmCatalogItem>()
open var ResponseStatus:ResponseStatus? = null
}
open class PmCatalogItem
{
open var Id:Int? = null
open var Name:String? = null
open var Amount:Double? = null
}
open class PmCatalogCrew
{
open var Id:Int? = null
open var Name:String? = null
open var MemberIds:ArrayList<Int> = ArrayList<Int>()
}
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.
GET /v1/pm/catalog HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Statuses":[{"Id":0,"Name":"String","Amount":0}],"Crew":[{"Id":0,"Name":"String","Amount":0}],"Crews":[{"Id":0,"Name":"String","MemberIds":[0]}],"Equipment":[{"Id":0,"Name":"String","Amount":0}],"Materials":[{"Id":0,"Name":"String","Amount":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}