| GET,OPTIONS | /v1/routeplan/propertybook |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class RoutePlanPropertyBookRequest
{
}
public static class RoutePlanPropertyBookResponse
{
public ArrayList<RoutePlanPropertyRow> Rows = new ArrayList<RoutePlanPropertyRow>();
public ResponseStatus ResponseStatus = null;
public ArrayList<RoutePlanPropertyRow> getRows() { return Rows; }
public RoutePlanPropertyBookResponse setRows(ArrayList<RoutePlanPropertyRow> value) { this.Rows = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public RoutePlanPropertyBookResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class RoutePlanPropertyRow
{
public Integer AgreementID = null;
public String Name = null;
public String Zip = null;
public String Area = null;
public Integer DurationMin = null;
public String Frequency = null;
public String ServiceType = null;
public String Acreage = null;
public Integer Dow = null;
public Integer getAgreementID() { return AgreementID; }
public RoutePlanPropertyRow setAgreementID(Integer value) { this.AgreementID = value; return this; }
public String getName() { return Name; }
public RoutePlanPropertyRow setName(String value) { this.Name = value; return this; }
public String getZip() { return Zip; }
public RoutePlanPropertyRow setZip(String value) { this.Zip = value; return this; }
public String getArea() { return Area; }
public RoutePlanPropertyRow setArea(String value) { this.Area = value; return this; }
public Integer getDurationMin() { return DurationMin; }
public RoutePlanPropertyRow setDurationMin(Integer value) { this.DurationMin = value; return this; }
public String getFrequency() { return Frequency; }
public RoutePlanPropertyRow setFrequency(String value) { this.Frequency = value; return this; }
public String getServiceType() { return ServiceType; }
public RoutePlanPropertyRow setServiceType(String value) { this.ServiceType = value; return this; }
public String getAcreage() { return Acreage; }
public RoutePlanPropertyRow setAcreage(String value) { this.Acreage = value; return this; }
public Integer getDow() { return Dow; }
public RoutePlanPropertyRow setDow(Integer value) { this.Dow = value; return this; }
}
}
Java RoutePlanPropertyBookRequest 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/routeplan/propertybook HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Rows":[{"AgreementID":0,"Name":"String","Zip":"String","Area":"String","DurationMin":0,"Frequency":"String","ServiceType":"String","Acreage":"String","Dow":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}