| GET,OPTIONS | /v1/engine/catalog |
|---|
import Foundation
import ServiceStack
public class EngineCatalogRequest : Codable
{
required public init(){}
}
public class EngineCatalogResponse : Codable
{
public var groups:[WorkflowCatalogGroupView] = []
public var responseStatus:ResponseStatus
required public init(){}
}
public class WorkflowCatalogGroupView : Codable
{
public var vertical:String
public var color:String
public var pack:String
public var triggers:[WorkflowCatalogItemView] = []
public var actions:[WorkflowCatalogItemView] = []
required public init(){}
}
public class WorkflowCatalogItemView : Codable
{
public var name:String
public var desc:String
public var fieldsJson:String
required public init(){}
}
Swift EngineCatalogRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/engine/catalog HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Groups:
[
{
Vertical: String,
Color: String,
Pack: String,
Triggers:
[
{
Name: String,
Desc: String,
FieldsJson: String
}
],
Actions:
[
{
Name: String,
Desc: String,
FieldsJson: String
}
]
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}