| GET,POST,PUT,DELETE,OPTIONS | /v1/Project/Activities/{ProjectID} |
|---|
import Foundation
import ServiceStack
public class ProjectActivitiesListRequest : Codable
{
public var projectID:Int
required public init(){}
}
public class ProjectActivitiesListResponse : Codable
{
public var responseStatus:ResponseStatus
public var projectActivities:[ProjectActivity] = []
required public init(){}
}
public class ProjectActivity : Codable
{
public var id:Int
public var name:String
public var type:String
public var status:String
public var note:String
public var dateAdded:Date
required public init(){}
}
Swift ProjectActivitiesListRequest 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.
POST /v1/Project/Activities/{ProjectID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"ProjectID":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectActivities":[{"Id":0,"Name":"String","Type":"String","Status":"String","Note":"String","DateAdded":"0001-01-01T00:00:00.0000000"}]}