| POST,OPTIONS | /v1/routeplan/forecast/move |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class RoutePlanForecastMoveRequest
{
public String Dest = null;
public ArrayList<RoutePlanForecastMoveItem> Items = new ArrayList<RoutePlanForecastMoveItem>();
public String getDest() { return Dest; }
public RoutePlanForecastMoveRequest setDest(String value) { this.Dest = value; return this; }
public ArrayList<RoutePlanForecastMoveItem> getItems() { return Items; }
public RoutePlanForecastMoveRequest setItems(ArrayList<RoutePlanForecastMoveItem> value) { this.Items = value; return this; }
}
public static class RoutePlanForecastMoveItem
{
public Integer AgreementID = null;
public Integer AgreementJobID = null;
public String DateIso = null;
public Integer getAgreementID() { return AgreementID; }
public RoutePlanForecastMoveItem setAgreementID(Integer value) { this.AgreementID = value; return this; }
public Integer getAgreementJobID() { return AgreementJobID; }
public RoutePlanForecastMoveItem setAgreementJobID(Integer value) { this.AgreementJobID = value; return this; }
public String getDateIso() { return DateIso; }
public RoutePlanForecastMoveItem setDateIso(String value) { this.DateIso = value; return this; }
}
public static class RoutePlanMoveResponse
{
public Integer Moved = null;
public Integer Dropped = null;
public Integer Kept = null;
public ResponseStatus ResponseStatus = null;
public Integer getMoved() { return Moved; }
public RoutePlanMoveResponse setMoved(Integer value) { this.Moved = value; return this; }
public Integer getDropped() { return Dropped; }
public RoutePlanMoveResponse setDropped(Integer value) { this.Dropped = value; return this; }
public Integer getKept() { return Kept; }
public RoutePlanMoveResponse setKept(Integer value) { this.Kept = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public RoutePlanMoveResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java RoutePlanForecastMoveRequest 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.
POST /v1/routeplan/forecast/move HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Dest: String,
Items:
[
{
AgreementID: 0,
AgreementJobID: 0,
DateIso: String
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Moved: 0,
Dropped: 0,
Kept: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}