Trendsic Platform Service

<back to all web services

QcTestListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/qc-tests
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class QcTestListRequest
    {
        public Integer ProjectID = null;
        
        public Integer getProjectID() { return ProjectID; }
        public QcTestListRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
    }

    public static class QcTestListResponse
    {
        public ResponseStatus ResponseStatus = null;
        public Integer ProjectID = null;
        public ArrayList<QcTest> Tests = new ArrayList<QcTest>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public QcTestListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public QcTestListResponse setProjectID(Integer value) { this.ProjectID = value; return this; }
        public ArrayList<QcTest> getTests() { return Tests; }
        public QcTestListResponse setTests(ArrayList<QcTest> value) { this.Tests = value; return this; }
    }

    public static class QcTest
    {
        public Integer QcTestID = null;
        public UUID QcTestUID = null;
        public Integer ProjectID = null;
        public String TestNo = null;
        public String TestType = null;
        public String Location = null;
        public String CostCode = null;
        public String Spec = null;
        public String TargetValue = null;
        public String ResultValue = null;
        public String Result = null;
        public String Lab = null;
        public String ReportName = null;
        public String Notes = null;
        public Date TestedAt = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        public Integer NcrCount = null;
        
        public Integer getQcTestID() { return QcTestID; }
        public QcTest setQcTestID(Integer value) { this.QcTestID = value; return this; }
        public UUID getQcTestUID() { return QcTestUID; }
        public QcTest setQcTestUID(UUID value) { this.QcTestUID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public QcTest setProjectID(Integer value) { this.ProjectID = value; return this; }
        public String getTestNo() { return TestNo; }
        public QcTest setTestNo(String value) { this.TestNo = value; return this; }
        public String getTestType() { return TestType; }
        public QcTest setTestType(String value) { this.TestType = value; return this; }
        public String getLocation() { return Location; }
        public QcTest setLocation(String value) { this.Location = value; return this; }
        public String getCostCode() { return CostCode; }
        public QcTest setCostCode(String value) { this.CostCode = value; return this; }
        public String getSpec() { return Spec; }
        public QcTest setSpec(String value) { this.Spec = value; return this; }
        public String getTargetValue() { return TargetValue; }
        public QcTest setTargetValue(String value) { this.TargetValue = value; return this; }
        public String getResultValue() { return ResultValue; }
        public QcTest setResultValue(String value) { this.ResultValue = value; return this; }
        public String getResult() { return Result; }
        public QcTest setResult(String value) { this.Result = value; return this; }
        public String getLab() { return Lab; }
        public QcTest setLab(String value) { this.Lab = value; return this; }
        public String getReportName() { return ReportName; }
        public QcTest setReportName(String value) { this.ReportName = value; return this; }
        public String getNotes() { return Notes; }
        public QcTest setNotes(String value) { this.Notes = value; return this; }
        public Date getTestedAt() { return TestedAt; }
        public QcTest setTestedAt(Date value) { this.TestedAt = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public QcTest setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public QcTest setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public QcTest setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
        public Integer getNcrCount() { return NcrCount; }
        public QcTest setNcrCount(Integer value) { this.NcrCount = value; return this; }
    }

}

Java QcTestListRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/projects/{ProjectID}/qc-tests HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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,
	Tests: 
	[
		{
			QcTestID: 0,
			QcTestUID: 00000000000000000000000000000000,
			ProjectID: 0,
			TestNo: String,
			TestType: String,
			Location: String,
			CostCode: String,
			Spec: String,
			TargetValue: String,
			ResultValue: String,
			Result: String,
			Lab: String,
			ReportName: String,
			Notes: String,
			TestedAt: 0001-01-01,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01,
			NcrCount: 0
		}
	]
}