| POST,OPTIONS | /v1/projects/{ProjectID}/hold-points |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class QcHoldPointCreateRequest
{
public Integer ProjectID = null;
public String Description = null;
public String ResponsibleParty = null;
public String CostCode = null;
public Date ScheduledDate = null;
public Integer getProjectID() { return ProjectID; }
public QcHoldPointCreateRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
public String getDescription() { return Description; }
public QcHoldPointCreateRequest setDescription(String value) { this.Description = value; return this; }
public String getResponsibleParty() { return ResponsibleParty; }
public QcHoldPointCreateRequest setResponsibleParty(String value) { this.ResponsibleParty = value; return this; }
public String getCostCode() { return CostCode; }
public QcHoldPointCreateRequest setCostCode(String value) { this.CostCode = value; return this; }
public Date getScheduledDate() { return ScheduledDate; }
public QcHoldPointCreateRequest setScheduledDate(Date value) { this.ScheduledDate = value; return this; }
}
public static class QcHoldPointResponse
{
public ResponseStatus ResponseStatus = null;
public QcHoldPoint HoldPoint = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public QcHoldPointResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public QcHoldPoint getHoldPoint() { return HoldPoint; }
public QcHoldPointResponse setHoldPoint(QcHoldPoint value) { this.HoldPoint = value; return this; }
}
public static class QcHoldPoint
{
public Integer QcHoldPointID = null;
public UUID QcHoldPointUID = null;
public Integer ProjectID = null;
public String Description = null;
public String ResponsibleParty = null;
public String CostCode = null;
public Date ScheduledDate = null;
public String Status = null;
public String ReleasedBy = null;
public Date ReleasedAt = null;
public String Notes = null;
public String CreatedBy = null;
public Date CreatedAt = null;
public Date UpdatedAt = null;
public Integer getQcHoldPointID() { return QcHoldPointID; }
public QcHoldPoint setQcHoldPointID(Integer value) { this.QcHoldPointID = value; return this; }
public UUID getQcHoldPointUID() { return QcHoldPointUID; }
public QcHoldPoint setQcHoldPointUID(UUID value) { this.QcHoldPointUID = value; return this; }
public Integer getProjectID() { return ProjectID; }
public QcHoldPoint setProjectID(Integer value) { this.ProjectID = value; return this; }
public String getDescription() { return Description; }
public QcHoldPoint setDescription(String value) { this.Description = value; return this; }
public String getResponsibleParty() { return ResponsibleParty; }
public QcHoldPoint setResponsibleParty(String value) { this.ResponsibleParty = value; return this; }
public String getCostCode() { return CostCode; }
public QcHoldPoint setCostCode(String value) { this.CostCode = value; return this; }
public Date getScheduledDate() { return ScheduledDate; }
public QcHoldPoint setScheduledDate(Date value) { this.ScheduledDate = value; return this; }
public String getStatus() { return Status; }
public QcHoldPoint setStatus(String value) { this.Status = value; return this; }
public String getReleasedBy() { return ReleasedBy; }
public QcHoldPoint setReleasedBy(String value) { this.ReleasedBy = value; return this; }
public Date getReleasedAt() { return ReleasedAt; }
public QcHoldPoint setReleasedAt(Date value) { this.ReleasedAt = value; return this; }
public String getNotes() { return Notes; }
public QcHoldPoint setNotes(String value) { this.Notes = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public QcHoldPoint setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public QcHoldPoint setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public Date getUpdatedAt() { return UpdatedAt; }
public QcHoldPoint setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
}
}
Java QcHoldPointCreateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/projects/{ProjectID}/hold-points HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ProjectID: 0,
Description: String,
ResponsibleParty: String,
CostCode: String,
ScheduledDate: 0001-01-01
}
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
}
},
HoldPoint:
{
QcHoldPointID: 0,
QcHoldPointUID: 00000000000000000000000000000000,
ProjectID: 0,
Description: String,
ResponsibleParty: String,
CostCode: String,
ScheduledDate: 0001-01-01,
Status: String,
ReleasedBy: String,
ReleasedAt: 0001-01-01,
Notes: String,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
}