Difference between revisions of "Get all routes"
From MyMobileWorkers API
(→Example curl request) |
(→Example curl request) |
||
| Line 50: | Line 50: | ||
== Example curl request == | == Example curl request == | ||
| − | curl "http:// | + | curl "http://api.mymobileworkers.com:8080/api/1/routes/route/all?api_key=TEST_KEY" |
Latest revision as of 12:51, 14 November 2016
[edit] Summary
| Get all routes | |||
|---|---|---|---|
| URL | http://:base_url/:api_path/:version/routes/route/all?api_key=YOUR_KEY | ||
| Type | GET | ||
| Params: | api_key | required | |
| Response | JSON | ||
The get all routes method returns all routes configured for your company in the portal.
[edit] Example response
{ "routes":[ { "external_id":null, "route_code":"LIV-001", "route_limit":180.0, "route_name":"Liverpool-AM" }, { "external_id":null, "route_code":"LIV-002", "route_limit":160.0, "route_name":"Liverpool-PM" }, { "external_id":null, "route_code":"WID-001", "route_limit":0.0, "route_name":"Widnes-AM" } ] }
[edit] Example curl request
curl "http://api.mymobileworkers.com:8080/api/1/routes/route/all?api_key=TEST_KEY"