| GET,OPTIONS | /v1/projects/{ProjectID}/ncrs |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class NcrListRequest
{
public Integer ProjectID = null;
public Integer getProjectID() { return ProjectID; }
public NcrListRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
}
public static class NcrListResponse
{
public ResponseStatus ResponseStatus = null;
public Integer ProjectID = null;
public ArrayList<Ncr> Ncrs = new ArrayList<Ncr>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public NcrListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Integer getProjectID() { return ProjectID; }
public NcrListResponse setProjectID(Integer value) { this.ProjectID = value; return this; }
public ArrayList<Ncr> getNcrs() { return Ncrs; }
public NcrListResponse setNcrs(ArrayList<Ncr> value) { this.Ncrs = value; return this; }
}
public static class Ncr
{
public Integer NcrID = null;
public UUID NcrUID = null;
public Integer ProjectID = null;
public Integer QcTestID = null;
public String NcrNo = null;
public String Title = null;
public String Description = null;
public String CostCode = null;
public String Disposition = null;
public String DispositionType = null;
public String CorrectiveAction = null;
public String DispositionedBy = null;
public Date DispositionedAt = null;
public String CreatedBy = null;
public Date CreatedAt = null;
public Date UpdatedAt = null;
public String TestNo = null;
public Integer getNcrID() { return NcrID; }
public Ncr setNcrID(Integer value) { this.NcrID = value; return this; }
public UUID getNcrUID() { return NcrUID; }
public Ncr setNcrUID(UUID value) { this.NcrUID = value; return this; }
public Integer getProjectID() { return ProjectID; }
public Ncr setProjectID(Integer value) { this.ProjectID = value; return this; }
public Integer getQcTestID() { return QcTestID; }
public Ncr setQcTestID(Integer value) { this.QcTestID = value; return this; }
public String getNcrNo() { return NcrNo; }
public Ncr setNcrNo(String value) { this.NcrNo = value; return this; }
public String getTitle() { return Title; }
public Ncr setTitle(String value) { this.Title = value; return this; }
public String getDescription() { return Description; }
public Ncr setDescription(String value) { this.Description = value; return this; }
public String getCostCode() { return CostCode; }
public Ncr setCostCode(String value) { this.CostCode = value; return this; }
public String getDisposition() { return Disposition; }
public Ncr setDisposition(String value) { this.Disposition = value; return this; }
public String getDispositionType() { return DispositionType; }
public Ncr setDispositionType(String value) { this.DispositionType = value; return this; }
public String getCorrectiveAction() { return CorrectiveAction; }
public Ncr setCorrectiveAction(String value) { this.CorrectiveAction = value; return this; }
public String getDispositionedBy() { return DispositionedBy; }
public Ncr setDispositionedBy(String value) { this.DispositionedBy = value; return this; }
public Date getDispositionedAt() { return DispositionedAt; }
public Ncr setDispositionedAt(Date value) { this.DispositionedAt = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public Ncr setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public Ncr setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public Date getUpdatedAt() { return UpdatedAt; }
public Ncr setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
public String getTestNo() { return TestNo; }
public Ncr setTestNo(String value) { this.TestNo = value; return this; }
}
}
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/projects/{ProjectID}/ncrs HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectID":0,"Ncrs":[{"NcrID":0,"NcrUID":"00000000000000000000000000000000","ProjectID":0,"QcTestID":0,"NcrNo":"String","Title":"String","Description":"String","CostCode":"String","Disposition":"String","DispositionType":"String","CorrectiveAction":"String","DispositionedBy":"String","DispositionedAt":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","TestNo":"String"}]}