| GET,OPTIONS | /v1/pm/todos/{Uid} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PmTodosRequest
{
public String Uid = null;
public String getUid() { return Uid; }
public PmTodosRequest setUid(String value) { this.Uid = value; return this; }
}
public static class PmTodosResponse
{
public ArrayList<PmTodo> Todos = new ArrayList<PmTodo>();
public ResponseStatus ResponseStatus = null;
public ArrayList<PmTodo> getTodos() { return Todos; }
public PmTodosResponse setTodos(ArrayList<PmTodo> value) { this.Todos = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PmTodosResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class PmTodo
{
public UUID TaskId = null;
public String Description = null;
public Date DueDate = null;
public Integer AssignedToAgentId = null;
public String Status = null;
public String Color = null;
public Date DateCompleted = null;
public UUID getTaskId() { return TaskId; }
public PmTodo setTaskId(UUID value) { this.TaskId = value; return this; }
public String getDescription() { return Description; }
public PmTodo setDescription(String value) { this.Description = value; return this; }
public Date getDueDate() { return DueDate; }
public PmTodo setDueDate(Date value) { this.DueDate = value; return this; }
public Integer getAssignedToAgentId() { return AssignedToAgentId; }
public PmTodo setAssignedToAgentId(Integer value) { this.AssignedToAgentId = value; return this; }
public String getStatus() { return Status; }
public PmTodo setStatus(String value) { this.Status = value; return this; }
public String getColor() { return Color; }
public PmTodo setColor(String value) { this.Color = value; return this; }
public Date getDateCompleted() { return DateCompleted; }
public PmTodo setDateCompleted(Date value) { this.DateCompleted = 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.
GET /v1/pm/todos/{Uid} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Todos":[{"TaskId":"00000000000000000000000000000000","Description":"String","DueDate":"0001-01-01T00:00:00.0000000","AssignedToAgentId":0,"Status":"String","Color":"String","DateCompleted":"0001-01-01T00:00:00.0000000"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}