Required role: | REGISUserRole |
POST | /Audit |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AuditRequest
{
public String uuid = null;
public Date created_since_date = null;
public String controller = null;
public String action = null;
public String item_id = null;
public String getUuid() { return uuid; }
public AuditRequest setUuid(String value) { this.uuid = value; return this; }
public Date getCreatedSinceDate() { return created_since_date; }
public AuditRequest setCreatedSinceDate(Date value) { this.created_since_date = value; return this; }
public String getController() { return controller; }
public AuditRequest setController(String value) { this.controller = value; return this; }
public String getAction() { return action; }
public AuditRequest setAction(String value) { this.action = value; return this; }
public String getItemId() { return item_id; }
public AuditRequest setItemId(String value) { this.item_id = value; return this; }
}
public static class AuditsResponse
{
public ResponseStatus responseStatus = null;
public ArrayList<AuditResponse> audits = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public AuditsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public ArrayList<AuditResponse> getAudits() { return audits; }
public AuditsResponse setAudits(ArrayList<AuditResponse> value) { this.audits = value; return this; }
}
public static class AuditResponse
{
public ResponseStatus responseStatus = null;
public String uuid = null;
public String ip_address = null;
public String url = null;
public String controller = null;
public String action = null;
public String item_id = null;
public Date timestamp = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public AuditResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getUuid() { return uuid; }
public AuditResponse setUuid(String value) { this.uuid = value; return this; }
public String getIpAddress() { return ip_address; }
public AuditResponse setIpAddress(String value) { this.ip_address = value; return this; }
public String getUrl() { return url; }
public AuditResponse setUrl(String value) { this.url = value; return this; }
public String getController() { return controller; }
public AuditResponse setController(String value) { this.controller = value; return this; }
public String getAction() { return action; }
public AuditResponse setAction(String value) { this.action = value; return this; }
public String getItemId() { return item_id; }
public AuditResponse setItemId(String value) { this.item_id = value; return this; }
public Date getTimestamp() { return timestamp; }
public AuditResponse setTimestamp(Date value) { this.timestamp = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Audit HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"uuid":"String","created_since_date":"0001-01-01T00:00:00.0000000","controller":"String","action":"String","item_id":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"audits":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"uuid":"String","ip_address":"String","url":"String","controller":"String","action":"String","item_id":"String","timestamp":"0001-01-01T00:00:00.0000000"}]}