approved, byrokraatit, ylläpitäjät
0
muokkausta
Rivi 235: | Rivi 235: | ||
* http://example.com/journeys/api/journeys?departureTime=08:00:00+0300 will return JOURNEYS which depart at the given time | * http://example.com/journeys/api/journeys?departureTime=08:00:00+0300 will return JOURNEYS which depart at the given time | ||
* http://example.com/journeys/api/journeys?arrivalTime=08:00:00+0300will return JOURNEYS which last call arrives at STOP POINT at 08:20:00+0300 | * http://example.com/journeys/api/journeys?arrivalTime=08:00:00+0300will return JOURNEYS which last call arrives at STOP POINT at 08:20:00+0300 | ||
* http://example.com/journeys/api/journeys?dayTypes=Monday,Tuesday,Wednesday will return JOURNEYS which run on given day types | * http://example.com/journeys/api/journeys?dayTypes=Monday,Tuesday,Wednesday will return JOURNEYS which run on given day types (exclusive) | ||
* http://example.com/journeys/api/journeys?stopPointId=111 will return JOURNEYS which contains a call which contains STOP POINT with id 111 | * http://example.com/journeys/api/journeys?stopPointId=111 will return JOURNEYS which contains a call which contains STOP POINT with id 111 | ||
* http://example.com/journeys/api/journeys?firstStopPointId=111 will return JOURNEYS which first call which contains STOP POINT with id 111 | * http://example.com/journeys/api/journeys?firstStopPointId=111 will return JOURNEYS which first call which contains STOP POINT with id 111 | ||
Rivi 241: | Rivi 241: | ||
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). | ||
==== Stop Points ==== | ==== Stop Points ==== | ||
A client can access specific STOP POINTS details by issuing request at http://example.com/journeys/api/stop-points/222 | A client can access specific STOP POINTS details by issuing request at http://example.com/journeys/api/stop-points/222 |