Trendsic Platform Service

<back to all web services

PmTodosRequest

Requires Authentication
The following routes are available for this service:
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; }
    }

}

Java PmTodosRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Todos: 
	[
		{
			TaskId: 00000000000000000000000000000000,
			Description: String,
			DueDate: 0001-01-01,
			AssignedToAgentId: 0,
			Status: String,
			Color: String,
			DateCompleted: 0001-01-01
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}