| GET,OPTIONS | /v1/webix/gantt/tasks | ||
|---|---|---|---|
| GET,OPTIONS | /v1/webix/gantt/tasks/{ProjectUID} |
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WebixGanttTask:
id: Optional[str] = None
type: Optional[str] = None
start_date: Optional[str] = None
planned_start: Optional[str] = None
end_date: Optional[str] = None
planned_end: Optional[str] = None
text: Optional[str] = None
progress: int = 0
parent: Optional[str] = None
position: int = 0
duration: int = 0
planned_duration: Optional[int] = None
details: Optional[str] = None
open: bool = False
opened: int = 0
job_type_id: Optional[int] = None
job_type_name: Optional[str] = None
created_by_id: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WebixGanttTaskResponse(WebixGanttTask):
pass
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WebixGanttTaskRequest:
project_u_i_d: Optional[str] = None
Python WebixGanttTaskRequest DTOs
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/webix/gantt/tasks HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":"String","type":"String","start_date":"String","planned_start":"String","end_date":"String","planned_end":"String","text":"String","progress":0,"parent":"String","position":0,"duration":0,"planned_duration":0,"details":"String","open":false,"opened":0,"job_type_id":0,"job_type_name":"String","created_by_id":"String"}