Ero sivun ”Journeys API” versioiden välillä

Rivi 207: Rivi 207:
}
}
</pre>
</pre>
A client can search JOURNEYS by issuing following requests:<br>
A client can search ROUTES by issuing following requests:<br>
* http://example.com/journeys/api/journeys will return paged list of all JOURNEYS
* http://example.com/journeys/api/routes will return paged list of all ROUTES
* http://example.com/journeys/api/journeys?lineId=123 will return JOURNEYS which run on the LINE with id 123
* http://example.com/journeys/api/routes?lineId=123 will return ROUTES which run on the LINE with id 123
* http://example.com/journeys/api/journeys?lineName=13 will return JOURNEYS which run on the LINE with name containing text "13" (case insentitive)
* 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/journeys?departureDate=2013-06-10 will return JOURNEYS which depart at the given date
* 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/journeys?departureTime=08:00:00+0300 will return JOURNEYS which depart at the given time
* 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/journeys?dayTypeId=123 will return JOURNEYS which run on the DAY TYPE with id 123
* http://example.com/journeys/api/journeys?dayTypeExceptionId=111 will return JOURNEYS which have a DAY TYPE EXCEPTION 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?lastCallStopPointArrivalTime=08:20:00+0300 will return JOURNEYS which last CALL arrives at STOP POINT at 08:20:00+0300
* 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?lastStopPointId=111 will return JOURNEYS which last CALL which contains STOP POINT with id 111


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).