| Requires any of the roles: | Worker, Agent, Administrator |
| GET,OPTIONS | /v1/Agent/Dropdown |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AgentDropdownRequest
{
}
public static class AgentDropdownResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<AgentDD> Agents = new ArrayList<AgentDD>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public AgentDropdownResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<AgentDD> getAgents() { return Agents; }
public AgentDropdownResponse setAgents(ArrayList<AgentDD> value) { this.Agents = value; return this; }
}
public static class AgentDD
{
public Integer AgentId = null;
public String AgentName = null;
public String AgentStatus = null;
public Integer ContactCount = null;
public Integer getAgentId() { return AgentId; }
public AgentDD setAgentId(Integer value) { this.AgentId = value; return this; }
public String getAgentName() { return AgentName; }
public AgentDD setAgentName(String value) { this.AgentName = value; return this; }
public String getAgentStatus() { return AgentStatus; }
public AgentDD setAgentStatus(String value) { this.AgentStatus = value; return this; }
public Integer getContactCount() { return ContactCount; }
public AgentDD setContactCount(Integer value) { this.ContactCount = value; return this; }
}
}
Java AgentDropdownRequest 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/Agent/Dropdown HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Agents:
[
{
AgentId: 0,
AgentName: String,
AgentStatus: String,
ContactCount: 0
}
]
}