| GET,OPTIONS | /v1/dashboard/locations |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DashboardLocationsRequest
{
}
public static class DashboardLocationsResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<DashboardLocationOption> Locations = new ArrayList<DashboardLocationOption>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public DashboardLocationsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<DashboardLocationOption> getLocations() { return Locations; }
public DashboardLocationsResponse setLocations(ArrayList<DashboardLocationOption> value) { this.Locations = value; return this; }
}
public static class DashboardLocationOption
{
public UUID Id = null;
public String Name = null;
public UUID getId() { return Id; }
public DashboardLocationOption setId(UUID value) { this.Id = value; return this; }
public String getName() { return Name; }
public DashboardLocationOption setName(String value) { this.Name = value; return this; }
}
}
Java DashboardLocationsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/dashboard/locations HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Locations":[{"Id":"00000000000000000000000000000000","Name":"String"}]}