| POST | /v1/webix/gantt/tasks | ||
|---|---|---|---|
| DELETE,PUT,OPTIONS | /v1/webix/gantt/tasks/{id} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class WebixGanttTaskChangeRequest extends WebixGanttTask
{
}
public static class WebixGanttTask
{
public String id = null;
public String type = null;
public String start_date = null;
public String planned_start = null;
public String end_date = null;
public String planned_end = null;
public String text = null;
public Integer progress = null;
public String parent = null;
public Integer position = null;
public Integer duration = null;
public Integer planned_duration = null;
public String details = null;
public Boolean open = null;
public Integer opened = null;
public Integer job_type_id = null;
public String job_type_name = null;
public String created_by_id = null;
public String getId() { return id; }
public WebixGanttTask setId(String value) { this.id = value; return this; }
public String getType() { return type; }
public WebixGanttTask setType(String value) { this.type = value; return this; }
public String getStartDate() { return start_date; }
public WebixGanttTask setStartDate(String value) { this.start_date = value; return this; }
public String getPlannedStart() { return planned_start; }
public WebixGanttTask setPlannedStart(String value) { this.planned_start = value; return this; }
public String getEndDate() { return end_date; }
public WebixGanttTask setEndDate(String value) { this.end_date = value; return this; }
public String getPlannedEnd() { return planned_end; }
public WebixGanttTask setPlannedEnd(String value) { this.planned_end = value; return this; }
public String getText() { return text; }
public WebixGanttTask setText(String value) { this.text = value; return this; }
public Integer getProgress() { return progress; }
public WebixGanttTask setProgress(Integer value) { this.progress = value; return this; }
public String getParent() { return parent; }
public WebixGanttTask setParent(String value) { this.parent = value; return this; }
public Integer getPosition() { return position; }
public WebixGanttTask setPosition(Integer value) { this.position = value; return this; }
public Integer getDuration() { return duration; }
public WebixGanttTask setDuration(Integer value) { this.duration = value; return this; }
public Integer getPlannedDuration() { return planned_duration; }
public WebixGanttTask setPlannedDuration(Integer value) { this.planned_duration = value; return this; }
public String getDetails() { return details; }
public WebixGanttTask setDetails(String value) { this.details = value; return this; }
public Boolean isOpen() { return open; }
public WebixGanttTask setOpen(Boolean value) { this.open = value; return this; }
public Integer getOpened() { return opened; }
public WebixGanttTask setOpened(Integer value) { this.opened = value; return this; }
public Integer getJobTypeId() { return job_type_id; }
public WebixGanttTask setJobTypeId(Integer value) { this.job_type_id = value; return this; }
public String getJobTypeName() { return job_type_name; }
public WebixGanttTask setJobTypeName(String value) { this.job_type_name = value; return this; }
public String getCreatedById() { return created_by_id; }
public WebixGanttTask setCreatedById(String value) { this.created_by_id = value; return this; }
}
public static class WebixGanttTaskResponse extends WebixGanttTask
{
}
}
Java WebixGanttTaskChangeRequest DTOs
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.
POST /v1/webix/gantt/tasks HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<WebixGanttTaskChangeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<created_by_id>String</created_by_id>
<details>String</details>
<duration>0</duration>
<end_date>String</end_date>
<id>String</id>
<job_type_id>0</job_type_id>
<job_type_name>String</job_type_name>
<open>false</open>
<opened>0</opened>
<parent>String</parent>
<planned_duration>0</planned_duration>
<planned_end>String</planned_end>
<planned_start>String</planned_start>
<position>0</position>
<progress>0</progress>
<start_date>String</start_date>
<text>String</text>
<type>String</type>
</WebixGanttTaskChangeRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <WebixGanttTaskResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal"> <created_by_id>String</created_by_id> <details>String</details> <duration>0</duration> <end_date>String</end_date> <id>String</id> <job_type_id>0</job_type_id> <job_type_name>String</job_type_name> <open>false</open> <opened>0</opened> <parent>String</parent> <planned_duration>0</planned_duration> <planned_end>String</planned_end> <planned_start>String</planned_start> <position>0</position> <progress>0</progress> <start_date>String</start_date> <text>String</text> <type>String</type> </WebixGanttTaskResponse>