| GET,OPTIONS | /v1/pins/{EntityType}/{EntityID} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/pins/{EntityType} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PinsForEntityRequest
{
public String EntityType = null;
public Integer EntityID = null;
public UUID EntityUID = null;
public String getEntityType() { return EntityType; }
public PinsForEntityRequest setEntityType(String value) { this.EntityType = value; return this; }
public Integer getEntityID() { return EntityID; }
public PinsForEntityRequest setEntityID(Integer value) { this.EntityID = value; return this; }
public UUID getEntityUID() { return EntityUID; }
public PinsForEntityRequest setEntityUID(UUID value) { this.EntityUID = value; return this; }
}
public static class SheetPinListResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<SheetPin> Pins = new ArrayList<SheetPin>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public SheetPinListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<SheetPin> getPins() { return Pins; }
public SheetPinListResponse setPins(ArrayList<SheetPin> value) { this.Pins = value; return this; }
}
public static class SheetPin
{
public Integer SheetPinID = null;
public Integer SheetID = null;
public String EntityType = null;
public Integer EntityID = null;
public UUID EntityUID = null;
public Double X = null;
public Double Y = null;
public String Label = null;
public String CreatedBy = null;
public Date CreatedAt = null;
public String EntityNo = null;
public String EntityTitle = null;
public String EntityStatus = null;
public UUID InspectionUID = null;
public String SheetNumber = null;
public String SheetTitle = null;
public Integer PlanSetID = null;
public UUID PlanSetUID = null;
public String PlanSetName = null;
public Integer getSheetPinID() { return SheetPinID; }
public SheetPin setSheetPinID(Integer value) { this.SheetPinID = value; return this; }
public Integer getSheetID() { return SheetID; }
public SheetPin setSheetID(Integer value) { this.SheetID = value; return this; }
public String getEntityType() { return EntityType; }
public SheetPin setEntityType(String value) { this.EntityType = value; return this; }
public Integer getEntityID() { return EntityID; }
public SheetPin setEntityID(Integer value) { this.EntityID = value; return this; }
public UUID getEntityUID() { return EntityUID; }
public SheetPin setEntityUID(UUID value) { this.EntityUID = value; return this; }
public Double getX() { return X; }
public SheetPin setX(Double value) { this.X = value; return this; }
public Double getY() { return Y; }
public SheetPin setY(Double value) { this.Y = value; return this; }
public String getLabel() { return Label; }
public SheetPin setLabel(String value) { this.Label = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public SheetPin setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public SheetPin setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public String getEntityNo() { return EntityNo; }
public SheetPin setEntityNo(String value) { this.EntityNo = value; return this; }
public String getEntityTitle() { return EntityTitle; }
public SheetPin setEntityTitle(String value) { this.EntityTitle = value; return this; }
public String getEntityStatus() { return EntityStatus; }
public SheetPin setEntityStatus(String value) { this.EntityStatus = value; return this; }
public UUID getInspectionUID() { return InspectionUID; }
public SheetPin setInspectionUID(UUID value) { this.InspectionUID = value; return this; }
public String getSheetNumber() { return SheetNumber; }
public SheetPin setSheetNumber(String value) { this.SheetNumber = value; return this; }
public String getSheetTitle() { return SheetTitle; }
public SheetPin setSheetTitle(String value) { this.SheetTitle = value; return this; }
public Integer getPlanSetID() { return PlanSetID; }
public SheetPin setPlanSetID(Integer value) { this.PlanSetID = value; return this; }
public UUID getPlanSetUID() { return PlanSetUID; }
public SheetPin setPlanSetUID(UUID value) { this.PlanSetUID = value; return this; }
public String getPlanSetName() { return PlanSetName; }
public SheetPin setPlanSetName(String value) { this.PlanSetName = value; return this; }
}
}
Java PinsForEntityRequest DTOs
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.
GET /v1/pins/{EntityType}/{EntityID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
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"}},"Pins":[{"SheetPinID":0,"SheetID":0,"EntityType":"String","EntityID":0,"EntityUID":"00000000000000000000000000000000","X":0,"Y":0,"Label":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","EntityNo":"String","EntityTitle":"String","EntityStatus":"String","InspectionUID":"00000000000000000000000000000000","SheetNumber":"String","SheetTitle":"String","PlanSetID":0,"PlanSetUID":"00000000000000000000000000000000","PlanSetName":"String"}]}