Trendsic Platform Service

<back to all web services

EngineTemplatesRequest

Requires Authentication
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EngineTemplatesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Templates>
    <WorkflowTemplateView>
      <Description>String</Description>
      <GraphJson>String</GraphJson>
      <Installs>0</Installs>
      <Name>String</Name>
      <Pack>String</Pack>
      <RefSourceKey>String</RefSourceKey>
      <StepCount>0</StepCount>
      <TemplateKey>String</TemplateKey>
      <Verticals xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Verticals>
    </WorkflowTemplateView>
  </Templates>
</EngineTemplatesResponse>