| GET,OPTIONS | /v1/projects/{ProjectID}/qc-summary |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class QcSummaryRequest
{
public Integer ProjectID = null;
public Integer getProjectID() { return ProjectID; }
public QcSummaryRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
}
public static class QcSummaryResponse
{
public ResponseStatus ResponseStatus = null;
public Integer ProjectID = null;
public QcSummary Summary = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public QcSummaryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public Integer getProjectID() { return ProjectID; }
public QcSummaryResponse setProjectID(Integer value) { this.ProjectID = value; return this; }
public QcSummary getSummary() { return Summary; }
public QcSummaryResponse setSummary(QcSummary value) { this.Summary = value; return this; }
}
public static class QcSummary
{
public Integer TestsThisMonth = null;
public Integer TestsTotal = null;
public Integer PassCount = null;
public Integer FailCount = null;
public Integer GradedCount = null;
public Integer PassRate = null;
public Integer RetestCount = null;
public Integer OpenNcrCount = null;
public Integer PendingHoldPoints = null;
public Integer getTestsThisMonth() { return TestsThisMonth; }
public QcSummary setTestsThisMonth(Integer value) { this.TestsThisMonth = value; return this; }
public Integer getTestsTotal() { return TestsTotal; }
public QcSummary setTestsTotal(Integer value) { this.TestsTotal = value; return this; }
public Integer getPassCount() { return PassCount; }
public QcSummary setPassCount(Integer value) { this.PassCount = value; return this; }
public Integer getFailCount() { return FailCount; }
public QcSummary setFailCount(Integer value) { this.FailCount = value; return this; }
public Integer getGradedCount() { return GradedCount; }
public QcSummary setGradedCount(Integer value) { this.GradedCount = value; return this; }
public Integer getPassRate() { return PassRate; }
public QcSummary setPassRate(Integer value) { this.PassRate = value; return this; }
public Integer getRetestCount() { return RetestCount; }
public QcSummary setRetestCount(Integer value) { this.RetestCount = value; return this; }
public Integer getOpenNcrCount() { return OpenNcrCount; }
public QcSummary setOpenNcrCount(Integer value) { this.OpenNcrCount = value; return this; }
public Integer getPendingHoldPoints() { return PendingHoldPoints; }
public QcSummary setPendingHoldPoints(Integer value) { this.PendingHoldPoints = 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}/qc-summary HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<QcSummaryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<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>
<Summary>
<FailCount>0</FailCount>
<GradedCount>0</GradedCount>
<OpenNcrCount>0</OpenNcrCount>
<PassCount>0</PassCount>
<PassRate>0</PassRate>
<PendingHoldPoints>0</PendingHoldPoints>
<RetestCount>0</RetestCount>
<TestsThisMonth>0</TestsThisMonth>
<TestsTotal>0</TestsTotal>
</Summary>
</QcSummaryResponse>