| POST,OPTIONS | /v1/routeplan/rainshift |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class RoutePlanRainShiftRequest
{
public String DateIso = null;
public String ToDateIso = null;
public String getDateIso() { return DateIso; }
public RoutePlanRainShiftRequest setDateIso(String value) { this.DateIso = value; return this; }
public String getToDateIso() { return ToDateIso; }
public RoutePlanRainShiftRequest setToDateIso(String value) { this.ToDateIso = 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 RoutePlanRainShiftRequest 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/rainshift HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
DateIso: String,
ToDateIso: 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
}
}
}