approved, byrokraatit, ylläpitäjät
0
muokkausta
(→Routes) |
|||
Rivi 207: | Rivi 207: | ||
} | } | ||
</pre> | </pre> | ||
A client can search | A client can search ROUTES by issuing following requests:<br> | ||
* http://example.com/journeys/api/ | * http://example.com/journeys/api/routes will return paged list of all ROUTES | ||
* http://example.com/journeys/api/ | * http://example.com/journeys/api/routes?lineId=123 will return ROUTES which run on the LINE with id 123 | ||
* http://example.com/journeys/api/ | * http://example.com/journeys/api/routes?startsAtPointOnRoute=111 will return ROUTES that start from POINT ON ROUTE with id 111 | ||
* http://example.com/journeys/api/routes?stopsAtPointOnRoute=111 will return ROUTES that stops from POINT ON ROUTE with id 111 | |||
* http://example.com/journeys/api/routes?viaPointOnRoute=111 will return ROUTES that drives through POINT ON ROUTE with id 111 | |||
* http://example.com/journeys/api/ | |||
* http://example.com/journeys/api/ | |||
These queries return response like above, with entities matching the criteria. All query parameters are exclusive (if you specify multiple conditions, the conditions are ANDed together). | These queries return response like above, with entities matching the criteria. All query parameters are exclusive (if you specify multiple conditions, the conditions are ANDed together). |