Field Squared API Services

<back to all web services

AppendRouteRequest

The following routes are available for this service:
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; }
    }

}

Java AppendRouteRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"Workspace":"String","UserId":"String","Date":"String","TaskIds":["String"],"StartTime":0,"RoundStartTimes":0,"TransitionTime":0,"DebugRequestTime":"String"}