GET | /values/endpoint/unique |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
/**
* Get a unique number string value for an endpoint field
*/
@Api(Description="Get a unique number string value for an endpoint field")
public static class GetUniqueEndpointValue
{
/**
* The account ID you are interested in
*/
@ApiMember(Description="The account ID you are interested in")
public String accountId = null;
/**
* The endpoint field you want a unique value for
*/
@ApiMember(Description="The endpoint field you want a unique value for")
public String fieldName = null;
/**
* The prefix to use for the value
*/
@ApiMember(Description="The prefix to use for the value")
public String prefix = null;
/**
* The length of the value
*/
@ApiMember(Description="The length of the value")
public Integer length = null;
public String getAccountId() { return accountId; }
public GetUniqueEndpointValue setAccountId(String value) { this.accountId = value; return this; }
public String getFieldName() { return fieldName; }
public GetUniqueEndpointValue setFieldName(String value) { this.fieldName = value; return this; }
public String getPrefix() { return prefix; }
public GetUniqueEndpointValue setPrefix(String value) { this.prefix = value; return this; }
public Integer getLength() { return length; }
public GetUniqueEndpointValue setLength(Integer value) { this.length = value; return this; }
}
public static class GetUniqueEndpointValueResponse
{
public String value = null;
public String getValue() { return value; }
public GetUniqueEndpointValueResponse setValue(String value) { this.value = value; return this; }
}
}
Java GetUniqueEndpointValue 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 /values/endpoint/unique HTTP/1.1 Host: team.evovoice.io Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"value":"String"}