| GET,OPTIONS | /v1/engine/templates |
|---|
"use strict";
export class WorkflowTemplateView {
/** @param {{TemplateKey?:string,Name?:string,Pack?:string,Verticals?:string[],RefSourceKey?:string,GraphJson?:string,StepCount?:number,Installs?:number,Description?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
TemplateKey;
/** @type {string} */
Name;
/** @type {string} */
Pack;
/** @type {string[]} */
Verticals = [];
/** @type {string} */
RefSourceKey;
/** @type {string} */
GraphJson;
/** @type {number} */
StepCount;
/** @type {number} */
Installs;
/** @type {string} */
Description;
}
export class EngineTemplatesResponse {
/** @param {{Templates?:WorkflowTemplateView[],ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {WorkflowTemplateView[]} */
Templates = [];
/** @type {ResponseStatus} */
ResponseStatus;
}
export class EngineTemplatesRequest {
constructor(init) { Object.assign(this, init) }
}
JavaScript EngineTemplatesRequest 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/templates HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Templates:
[
{
TemplateKey: String,
Name: String,
Pack: String,
Verticals:
[
String
],
RefSourceKey: String,
GraphJson: String,
StepCount: 0,
Installs: 0,
Description: String
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}