| POST | /{Workspace}/AppendRoute |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AppendRouteRequest
{
public String Workspace = null;
public String UserId = null;
public String Date = null;
public ArrayList<String> TaskIds = null;
public Integer StartTime = null;
public Integer RoundStartTimes = null;
public Integer TransitionTime = null;
public String DebugRequestTime = null;
public String getWorkspace() { return Workspace; }
public AppendRouteRequest setWorkspace(String value) { this.Workspace = value; return this; }
public String getUserId() { return UserId; }
public AppendRouteRequest setUserId(String value) { this.UserId = value; return this; }
public String getDate() { return Date; }
public AppendRouteRequest setDate(String value) { this.Date = value; return this; }
public ArrayList<String> getTaskIds() { return TaskIds; }
public AppendRouteRequest setTaskIds(ArrayList<String> value) { this.TaskIds = value; return this; }
public Integer getStartTime() { return StartTime; }
public AppendRouteRequest setStartTime(Integer value) { this.StartTime = value; return this; }
public Integer getRoundStartTimes() { return RoundStartTimes; }
public AppendRouteRequest setRoundStartTimes(Integer value) { this.RoundStartTimes = value; return this; }
public Integer getTransitionTime() { return TransitionTime; }
public AppendRouteRequest setTransitionTime(Integer value) { this.TransitionTime = value; return this; }
public String getDebugRequestTime() { return DebugRequestTime; }
public AppendRouteRequest setDebugRequestTime(String value) { this.DebugRequestTime = value; return this; }
}
}
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.
POST /{Workspace}/AppendRoute HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Workspace":"String","UserId":"String","Date":"String","TaskIds":["String"],"StartTime":0,"RoundStartTimes":0,"TransitionTime":0,"DebugRequestTime":"String"}