Trendsic Platform Service

<back to all web services

WebixGanttTaskChangeRequest

Requires Authentication
The following routes are available for this service:
POST/v1/webix/gantt/tasks
DELETE,PUT,OPTIONS/v1/webix/gantt/tasks/{id}
import Foundation
import ServiceStack

public class WebixGanttTaskChangeRequest : WebixGanttTask
{
    required public init(){ super.init() }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
    }
}

public class WebixGanttTask : Codable
{
    public var id:String
    public var type:String
    public var start_date:String
    public var planned_start:String
    public var end_date:String
    public var planned_end:String
    public var text:String
    public var progress:Int
    public var parent:String
    public var position:Int
    public var duration:Int
    public var planned_duration:Int?
    public var details:String
    public var open:Bool
    public var opened:Int
    public var job_type_id:Int?
    public var job_type_name:String
    public var created_by_id:String

    required public init(){}
}

public class WebixGanttTaskResponse : WebixGanttTask
{
    required public init(){ super.init() }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
    }
}


Swift WebixGanttTaskChangeRequest 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.

POST /v1/webix/gantt/tasks HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
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
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}