| 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 .xml suffix or ?format=xml
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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PmTodosResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Todos>
<PmTodo>
<AssignedToAgentId>0</AssignedToAgentId>
<Color>String</Color>
<DateCompleted>0001-01-01T00:00:00</DateCompleted>
<Description>String</Description>
<DueDate>0001-01-01T00:00:00</DueDate>
<Status>String</Status>
<TaskId>00000000-0000-0000-0000-000000000000</TaskId>
</PmTodo>
</Todos>
</PmTodosResponse>