Trendsic Platform Service

<back to all web services

NcrDispositionRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/projects/{ProjectID}/ncrs/{NcrID}/disposition
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class NcrDispositionRequest
    {
        public Integer ProjectID = null;
        public Integer NcrID = null;
        public String DispositionType = null;
        public String CorrectiveAction = null;
        public Boolean Close = null;
        
        public Integer getProjectID() { return ProjectID; }
        public NcrDispositionRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getNcrID() { return NcrID; }
        public NcrDispositionRequest setNcrID(Integer value) { this.NcrID = value; return this; }
        public String getDispositionType() { return DispositionType; }
        public NcrDispositionRequest setDispositionType(String value) { this.DispositionType = value; return this; }
        public String getCorrectiveAction() { return CorrectiveAction; }
        public NcrDispositionRequest setCorrectiveAction(String value) { this.CorrectiveAction = value; return this; }
        public Boolean isClose() { return Close; }
        public NcrDispositionRequest setClose(Boolean value) { this.Close = value; return this; }
    }

    public static class NcrResponse
    {
        public ResponseStatus ResponseStatus = null;
        public Ncr Ncr = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public NcrResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public Ncr getNcr() { return Ncr; }
        public NcrResponse setNcr(Ncr value) { this.Ncr = 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; }
    }

}

Java NcrDispositionRequest DTOs

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

HTTP + CSV

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

POST /v1/projects/{ProjectID}/ncrs/{NcrID}/disposition HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ProjectID":0,"NcrID":0,"DispositionType":"String","CorrectiveAction":"String","Close":false}
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"}},"Ncr":{"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"}}