Get all routes
From MyMobileWorkers API
Revision as of 10:21, 5 December 2013 by Darren.atherton (Talk | contribs)
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.
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" } ] }
Example curl request
curl "http://live.mymobileworkers.com:8080/api/1/routes/route/all?api_key=TEST_KEY"