| 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 .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/projects/{ProjectID}/qc-summary 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"}},"ProjectID":0,"Summary":{"TestsThisMonth":0,"TestsTotal":0,"PassCount":0,"FailCount":0,"GradedCount":0,"PassRate":0,"RetestCount":0,"OpenNcrCount":0,"PendingHoldPoints":0}}