| GET,OPTIONS | /v1/webix/kanban/tasks | ||
|---|---|---|---|
| GET,OPTIONS | /v1/webix/kanban/tasks/{ProjectUID} |
import Foundation
import ServiceStack
public class WebixKanbanTaskRequest : Codable
{
public var projectUID:String
required public init(){}
}
public class WebixKanbanTaskResponse : WebixKanbanTask
{
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 WebixKanbanTask : Codable
{
public var id:String
public var status:String
public var user_id:Int
public var text:String
public var color:String
public var tags:[String] = []
public var comments:[WebixKanbanComment] = []
public var attachments:[KanbanTaskAttachment] = []
public var list:Int
required public init(){}
}
public class WebixKanbanComment : Codable
{
public var id:String
public var user_id:Int?
public var date:String
public var text:String
required public init(){}
}
public class KanbanTaskAttachment : Codable
{
public var id:String
public var link:String
public var size:Int
required public init(){}
}
Swift WebixKanbanTaskRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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}