| GET,OPTIONS | /v1/engine/catalog |
|---|
export class WorkflowCatalogItemView
{
public Name: string;
public Desc: string;
public FieldsJson: string;
public constructor(init?: Partial<WorkflowCatalogItemView>) { (Object as any).assign(this, init); }
}
export class WorkflowCatalogGroupView
{
public Vertical: string;
public Color: string;
public Pack: string;
public Triggers: WorkflowCatalogItemView[] = [];
public Actions: WorkflowCatalogItemView[] = [];
public constructor(init?: Partial<WorkflowCatalogGroupView>) { (Object as any).assign(this, init); }
}
export class EngineCatalogResponse
{
public Groups: WorkflowCatalogGroupView[] = [];
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<EngineCatalogResponse>) { (Object as any).assign(this, init); }
}
export class EngineCatalogRequest
{
public constructor(init?: Partial<EngineCatalogRequest>) { (Object as any).assign(this, init); }
}
TypeScript 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
}
}
}