| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/AuditCheckins/{Id} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/AuditCheckins |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AuditCheckins extends AuditCheckinObject
{
public UUID ApiKey = null;
public UUID getApiKey() { return ApiKey; }
public AuditCheckins setApiKey(UUID value) { this.ApiKey = value; return this; }
}
public static class AuditCheckinObject
{
public UUID Id = null;
public UUID CustomCheckinId = null;
public Integer StatusId = null;
public Date ModDate = null;
public UUID ModBy = null;
public UUID getId() { return Id; }
public AuditCheckinObject setId(UUID value) { this.Id = value; return this; }
public UUID getCustomCheckinId() { return CustomCheckinId; }
public AuditCheckinObject setCustomCheckinId(UUID value) { this.CustomCheckinId = value; return this; }
public Integer getStatusId() { return StatusId; }
public AuditCheckinObject setStatusId(Integer value) { this.StatusId = value; return this; }
public Date getModDate() { return ModDate; }
public AuditCheckinObject setModDate(Date value) { this.ModDate = value; return this; }
public UUID getModBy() { return ModBy; }
public AuditCheckinObject setModBy(UUID value) { this.ModBy = value; return this; }
}
public static class AuditCheckinsResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<AuditCheckinObject> AuditCheckins = new ArrayList<AuditCheckinObject>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public AuditCheckinsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<AuditCheckinObject> getAuditCheckins() { return AuditCheckins; }
public AuditCheckinsResponse setAuditCheckins(ArrayList<AuditCheckinObject> value) { this.AuditCheckins = value; return this; }
}
}
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/AuditCheckins/{Id} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ApiKey: 00000000000000000000000000000000,
Id: 00000000000000000000000000000000,
CustomCheckinId: 00000000000000000000000000000000,
StatusId: 0,
ModDate: 0001-01-01,
ModBy: 00000000000000000000000000000000
}
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
}
},
AuditCheckins:
[
{
Id: 00000000000000000000000000000000,
CustomCheckinId: 00000000000000000000000000000000,
StatusId: 0,
ModDate: 0001-01-01,
ModBy: 00000000000000000000000000000000
}
]
}