| GET,OPTIONS | /v1/pm/catalog |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PmCatalogRequest
{
}
public static class PmCatalogResponse
{
public ArrayList<PmCatalogItem> Statuses = new ArrayList<PmCatalogItem>();
public ArrayList<PmCatalogItem> Crew = new ArrayList<PmCatalogItem>();
public ArrayList<PmCatalogCrew> Crews = new ArrayList<PmCatalogCrew>();
public ArrayList<PmCatalogItem> Equipment = new ArrayList<PmCatalogItem>();
public ArrayList<PmCatalogItem> Materials = new ArrayList<PmCatalogItem>();
public ResponseStatus ResponseStatus = null;
public ArrayList<PmCatalogItem> getStatuses() { return Statuses; }
public PmCatalogResponse setStatuses(ArrayList<PmCatalogItem> value) { this.Statuses = value; return this; }
public ArrayList<PmCatalogItem> getCrew() { return Crew; }
public PmCatalogResponse setCrew(ArrayList<PmCatalogItem> value) { this.Crew = value; return this; }
public ArrayList<PmCatalogCrew> getCrews() { return Crews; }
public PmCatalogResponse setCrews(ArrayList<PmCatalogCrew> value) { this.Crews = value; return this; }
public ArrayList<PmCatalogItem> getEquipment() { return Equipment; }
public PmCatalogResponse setEquipment(ArrayList<PmCatalogItem> value) { this.Equipment = value; return this; }
public ArrayList<PmCatalogItem> getMaterials() { return Materials; }
public PmCatalogResponse setMaterials(ArrayList<PmCatalogItem> value) { this.Materials = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PmCatalogResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class PmCatalogItem
{
public Integer Id = null;
public String Name = null;
public Double Amount = null;
public Integer getId() { return Id; }
public PmCatalogItem setId(Integer value) { this.Id = value; return this; }
public String getName() { return Name; }
public PmCatalogItem setName(String value) { this.Name = value; return this; }
public Double getAmount() { return Amount; }
public PmCatalogItem setAmount(Double value) { this.Amount = value; return this; }
}
public static class PmCatalogCrew
{
public Integer Id = null;
public String Name = null;
public ArrayList<Integer> MemberIds = new ArrayList<Integer>();
public Integer getId() { return Id; }
public PmCatalogCrew setId(Integer value) { this.Id = value; return this; }
public String getName() { return Name; }
public PmCatalogCrew setName(String value) { this.Name = value; return this; }
public ArrayList<Integer> getMemberIds() { return MemberIds; }
public PmCatalogCrew setMemberIds(ArrayList<Integer> value) { this.MemberIds = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}
}
}