| 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 .xml suffix or ?format=xml
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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<NcrListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Ncrs>
<Ncr>
<CorrectiveAction>String</CorrectiveAction>
<CostCode>String</CostCode>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<CreatedBy>String</CreatedBy>
<Description>String</Description>
<Disposition>String</Disposition>
<DispositionType>String</DispositionType>
<DispositionedAt>0001-01-01T00:00:00</DispositionedAt>
<DispositionedBy>String</DispositionedBy>
<NcrID>0</NcrID>
<NcrNo>String</NcrNo>
<NcrUID>00000000-0000-0000-0000-000000000000</NcrUID>
<ProjectID>0</ProjectID>
<QcTestID>0</QcTestID>
<TestNo>String</TestNo>
<Title>String</Title>
<UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
</Ncr>
</Ncrs>
<ProjectID>0</ProjectID>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</NcrListResponse>