| GET,OPTIONS | /v1/engine/templates |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class EngineTemplatesRequest
{
}
public static class EngineTemplatesResponse
{
public ArrayList<WorkflowTemplateView> Templates = new ArrayList<WorkflowTemplateView>();
public ResponseStatus ResponseStatus = null;
public ArrayList<WorkflowTemplateView> getTemplates() { return Templates; }
public EngineTemplatesResponse setTemplates(ArrayList<WorkflowTemplateView> value) { this.Templates = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public EngineTemplatesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class WorkflowTemplateView
{
public String TemplateKey = null;
public String Name = null;
public String Pack = null;
public ArrayList<String> Verticals = new ArrayList<String>();
public String RefSourceKey = null;
public String GraphJson = null;
public Integer StepCount = null;
public Integer Installs = null;
public String Description = null;
public String getTemplateKey() { return TemplateKey; }
public WorkflowTemplateView setTemplateKey(String value) { this.TemplateKey = value; return this; }
public String getName() { return Name; }
public WorkflowTemplateView setName(String value) { this.Name = value; return this; }
public String getPack() { return Pack; }
public WorkflowTemplateView setPack(String value) { this.Pack = value; return this; }
public ArrayList<String> getVerticals() { return Verticals; }
public WorkflowTemplateView setVerticals(ArrayList<String> value) { this.Verticals = value; return this; }
public String getRefSourceKey() { return RefSourceKey; }
public WorkflowTemplateView setRefSourceKey(String value) { this.RefSourceKey = value; return this; }
public String getGraphJson() { return GraphJson; }
public WorkflowTemplateView setGraphJson(String value) { this.GraphJson = value; return this; }
public Integer getStepCount() { return StepCount; }
public WorkflowTemplateView setStepCount(Integer value) { this.StepCount = value; return this; }
public Integer getInstalls() { return Installs; }
public WorkflowTemplateView setInstalls(Integer value) { this.Installs = value; return this; }
public String getDescription() { return Description; }
public WorkflowTemplateView setDescription(String value) { this.Description = value; return this; }
}
}
Java EngineTemplatesRequest 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/engine/templates HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}