| POST,OPTIONS | /v1/platform/requests/{PlatformRequestId}/approve |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ApprovePlatformRequest
{
public Integer PlatformRequestId = null;
public String Status = null;
public Date ExpiresAt = null;
public String Reason = null;
public Integer getPlatformRequestId() { return PlatformRequestId; }
public ApprovePlatformRequest setPlatformRequestId(Integer value) { this.PlatformRequestId = value; return this; }
public String getStatus() { return Status; }
public ApprovePlatformRequest setStatus(String value) { this.Status = value; return this; }
public Date getExpiresAt() { return ExpiresAt; }
public ApprovePlatformRequest setExpiresAt(Date value) { this.ExpiresAt = value; return this; }
public String getReason() { return Reason; }
public ApprovePlatformRequest setReason(String value) { this.Reason = value; return this; }
}
public static class PlatformRequestsResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<PlatformRequestRow> Requests = new ArrayList<PlatformRequestRow>();
public PlatformRequestRow Closed = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PlatformRequestsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<PlatformRequestRow> getRequests() { return Requests; }
public PlatformRequestsResponse setRequests(ArrayList<PlatformRequestRow> value) { this.Requests = value; return this; }
public PlatformRequestRow getClosed() { return Closed; }
public PlatformRequestsResponse setClosed(PlatformRequestRow value) { this.Closed = value; return this; }
}
public static class PlatformRequestRow
{
public Integer PlatformRequestId = null;
public UUID TenantId = null;
public String TenantName = null;
public String Slug = null;
public String Kind = null;
public String Key = null;
public String Message = null;
public String ContactName = null;
public String ContactEmail = null;
public String RequestedBy = null;
public Date RequestedAt = null;
public String Status = null;
public String ClosedBy = null;
public Date ClosedAt = null;
public String CloseNote = null;
public Integer getPlatformRequestId() { return PlatformRequestId; }
public PlatformRequestRow setPlatformRequestId(Integer value) { this.PlatformRequestId = value; return this; }
public UUID getTenantId() { return TenantId; }
public PlatformRequestRow setTenantId(UUID value) { this.TenantId = value; return this; }
public String getTenantName() { return TenantName; }
public PlatformRequestRow setTenantName(String value) { this.TenantName = value; return this; }
public String getSlug() { return Slug; }
public PlatformRequestRow setSlug(String value) { this.Slug = value; return this; }
public String getKind() { return Kind; }
public PlatformRequestRow setKind(String value) { this.Kind = value; return this; }
public String getKey() { return Key; }
public PlatformRequestRow setKey(String value) { this.Key = value; return this; }
public String getMessage() { return Message; }
public PlatformRequestRow setMessage(String value) { this.Message = value; return this; }
public String getContactName() { return ContactName; }
public PlatformRequestRow setContactName(String value) { this.ContactName = value; return this; }
public String getContactEmail() { return ContactEmail; }
public PlatformRequestRow setContactEmail(String value) { this.ContactEmail = value; return this; }
public String getRequestedBy() { return RequestedBy; }
public PlatformRequestRow setRequestedBy(String value) { this.RequestedBy = value; return this; }
public Date getRequestedAt() { return RequestedAt; }
public PlatformRequestRow setRequestedAt(Date value) { this.RequestedAt = value; return this; }
public String getStatus() { return Status; }
public PlatformRequestRow setStatus(String value) { this.Status = value; return this; }
public String getClosedBy() { return ClosedBy; }
public PlatformRequestRow setClosedBy(String value) { this.ClosedBy = value; return this; }
public Date getClosedAt() { return ClosedAt; }
public PlatformRequestRow setClosedAt(Date value) { this.ClosedAt = value; return this; }
public String getCloseNote() { return CloseNote; }
public PlatformRequestRow setCloseNote(String value) { this.CloseNote = value; return this; }
}
}
Java ApprovePlatformRequest 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/platform/requests/{PlatformRequestId}/approve HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PlatformRequestId: 0,
Status: String,
ExpiresAt: 0001-01-01,
Reason: String
}
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
}
},
Requests:
[
{
PlatformRequestId: 0,
TenantId: 00000000000000000000000000000000,
TenantName: String,
Slug: String,
Kind: String,
Key: String,
Message: String,
ContactName: String,
ContactEmail: String,
RequestedBy: String,
RequestedAt: 0001-01-01,
Status: String,
ClosedBy: String,
ClosedAt: 0001-01-01,
CloseNote: String
}
],
Closed:
{
PlatformRequestId: 0,
TenantId: 00000000000000000000000000000000,
TenantName: String,
Slug: String,
Kind: String,
Key: String,
Message: String,
ContactName: String,
ContactEmail: String,
RequestedBy: String,
RequestedAt: 0001-01-01,
Status: String,
ClosedBy: String,
ClosedAt: 0001-01-01,
CloseNote: String
}
}