| GET,OPTIONS | /v1/engine/suggestions |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class EngineSuggestionsRequest
{
}
public static class EngineSuggestionsResponse
{
public ArrayList<WorkflowSuggestionView> Suggestions = new ArrayList<WorkflowSuggestionView>();
public ResponseStatus ResponseStatus = null;
public ArrayList<WorkflowSuggestionView> getSuggestions() { return Suggestions; }
public EngineSuggestionsResponse setSuggestions(ArrayList<WorkflowSuggestionView> value) { this.Suggestions = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public EngineSuggestionsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class WorkflowSuggestionView
{
public Integer SuggestionId = null;
public String SuggestionKey = null;
public String Title = null;
public String Evidence = null;
public String Impact = null;
public String Vertical = null;
public Integer getSuggestionId() { return SuggestionId; }
public WorkflowSuggestionView setSuggestionId(Integer value) { this.SuggestionId = value; return this; }
public String getSuggestionKey() { return SuggestionKey; }
public WorkflowSuggestionView setSuggestionKey(String value) { this.SuggestionKey = value; return this; }
public String getTitle() { return Title; }
public WorkflowSuggestionView setTitle(String value) { this.Title = value; return this; }
public String getEvidence() { return Evidence; }
public WorkflowSuggestionView setEvidence(String value) { this.Evidence = value; return this; }
public String getImpact() { return Impact; }
public WorkflowSuggestionView setImpact(String value) { this.Impact = value; return this; }
public String getVertical() { return Vertical; }
public WorkflowSuggestionView setVertical(String value) { this.Vertical = value; return this; }
}
}
Java EngineSuggestionsRequest 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/suggestions HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Suggestions:
[
{
SuggestionId: 0,
SuggestionKey: String,
Title: String,
Evidence: String,
Impact: String,
Vertical: String
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}