| GET,OPTIONS | /v1/pm/catalog |
|---|
export class PmCatalogItem
{
public Id: number;
public Name: string;
public Amount: number;
public constructor(init?: Partial<PmCatalogItem>) { (Object as any).assign(this, init); }
}
export class PmCatalogCrew
{
public Id: number;
public Name: string;
public MemberIds: number[] = [];
public constructor(init?: Partial<PmCatalogCrew>) { (Object as any).assign(this, init); }
}
export class PmCatalogResponse
{
public Statuses: PmCatalogItem[] = [];
public Crew: PmCatalogItem[] = [];
public Crews: PmCatalogCrew[] = [];
public Equipment: PmCatalogItem[] = [];
public Materials: PmCatalogItem[] = [];
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<PmCatalogResponse>) { (Object as any).assign(this, init); }
}
export class PmCatalogRequest
{
public constructor(init?: Partial<PmCatalogRequest>) { (Object as any).assign(this, init); }
}
TypeScript PmCatalogRequest DTOs
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"}}}