| GET,OPTIONS | /v1/webix/kanban/tasks | ||
|---|---|---|---|
| GET,OPTIONS | /v1/webix/kanban/tasks/{ProjectUID} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class WebixKanbanTaskRequest
{
public UUID ProjectUID = null;
public UUID getProjectUID() { return ProjectUID; }
public WebixKanbanTaskRequest setProjectUID(UUID value) { this.ProjectUID = value; return this; }
}
public static class WebixKanbanTaskResponse extends WebixKanbanTask
{
}
public static class WebixKanbanTask
{
public UUID id = null;
public String status = null;
public Integer user_id = null;
public String text = null;
public String color = null;
public ArrayList<String> tags = new ArrayList<String>();
public ArrayList<WebixKanbanComment> comments = new ArrayList<WebixKanbanComment>();
public ArrayList<KanbanTaskAttachment> attachments = new ArrayList<KanbanTaskAttachment>();
public Integer list = null;
public UUID getId() { return id; }
public WebixKanbanTask setId(UUID value) { this.id = value; return this; }
public String getStatus() { return status; }
public WebixKanbanTask setStatus(String value) { this.status = value; return this; }
public Integer getUserId() { return user_id; }
public WebixKanbanTask setUserId(Integer value) { this.user_id = value; return this; }
public String getText() { return text; }
public WebixKanbanTask setText(String value) { this.text = value; return this; }
public String getColor() { return color; }
public WebixKanbanTask setColor(String value) { this.color = value; return this; }
public ArrayList<String> getTags() { return tags; }
public WebixKanbanTask setTags(ArrayList<String> value) { this.tags = value; return this; }
public ArrayList<WebixKanbanComment> getComments() { return comments; }
public WebixKanbanTask setComments(ArrayList<WebixKanbanComment> value) { this.comments = value; return this; }
public ArrayList<KanbanTaskAttachment> getAttachments() { return attachments; }
public WebixKanbanTask setAttachments(ArrayList<KanbanTaskAttachment> value) { this.attachments = value; return this; }
public Integer getList() { return list; }
public WebixKanbanTask setList(Integer value) { this.list = value; return this; }
}
public static class WebixKanbanComment
{
public String id = null;
public Integer user_id = null;
public String date = null;
public String text = null;
public String getId() { return id; }
public WebixKanbanComment setId(String value) { this.id = value; return this; }
public Integer getUserId() { return user_id; }
public WebixKanbanComment setUserId(Integer value) { this.user_id = value; return this; }
public String getDate() { return date; }
public WebixKanbanComment setDate(String value) { this.date = value; return this; }
public String getText() { return text; }
public WebixKanbanComment setText(String value) { this.text = value; return this; }
}
public static class KanbanTaskAttachment
{
public UUID id = null;
public String link = null;
public Long size = null;
public UUID getId() { return id; }
public KanbanTaskAttachment setId(UUID value) { this.id = value; return this; }
public String getLink() { return link; }
public KanbanTaskAttachment setLink(String value) { this.link = value; return this; }
public Long getSize() { return size; }
public KanbanTaskAttachment setSize(Long value) { this.size = value; return this; }
}
}
Java WebixKanbanTaskRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/webix/kanban/tasks HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 00000000000000000000000000000000,
status: String,
user_id: 0,
text: String,
color: String,
tags:
[
String
],
comments:
[
{
id: String,
user_id: 0,
date: String,
text: String
}
],
attachments:
[
{
id: 00000000000000000000000000000000,
link: String,
size: 0
}
],
list: 0
}