| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/Messages/{Id} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/Messages |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class Messages extends MessageObject
{
public UUID ApiKey = null;
public UUID getApiKey() { return ApiKey; }
public Messages setApiKey(UUID value) { this.ApiKey = value; return this; }
}
public static class MessageObject
{
public UUID Id = null;
public String Message = null;
public UUID getId() { return Id; }
public MessageObject setId(UUID value) { this.Id = value; return this; }
public String getMessage() { return Message; }
public MessageObject setMessage(String value) { this.Message = value; return this; }
}
public static class MessagesResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<MessageObject> Messages = new ArrayList<MessageObject>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public MessagesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<MessageObject> getMessages() { return Messages; }
public MessagesResponse setMessages(ArrayList<MessageObject> value) { this.Messages = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Messages/{Id} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"ApiKey":"00000000000000000000000000000000","Id":"00000000000000000000000000000000","Message":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Messages":[{"Id":"00000000000000000000000000000000","Message":"String"}]}