Ero sivun ”Journeys API” versioiden välillä

12 merkkiä poistettu ,  17. heinäkuuta 2014 kello 01.53
Rivi 266: Rivi 266:
A client can search JOURNEYS by issuing following requests:<br>
A client can search JOURNEYS by issuing following requests:<br>
* http://data.itsfactory.fi/journeys/api/1/journeys will return paged list of all JOURNEYS
* http://data.itsfactory.fi/journeys/api/1/journeys will return paged list of all JOURNEYS
* http://data.itsfactory.fi/journeys/api/1/journeys?lineId=123 will return JOURNEYS which run on the LINE with id 123
* http://data.itsfactory.fi/journeys/api/1/journeys?lineId=2 will return JOURNEYS which run on the LINE with id 2
* http://data.itsfactory.fi/journeys/api/1/journeys?routeId=123 will return JOURNEYS which run on the ROUTE with id 123
* http://data.itsfactory.fi/journeys/api/1/journeys?routeId=1 will return JOURNEYS which run on the ROUTE with id 1
* http://data.itsfactory.fi/journeys/api/1/journeys?departureTime=08:00:00 will return JOURNEYS which depart at the given time
* http://data.itsfactory.fi/journeys/api/1/journeys?departureTime=08:00:00 will return JOURNEYS which depart at the given time
* http://data.itsfactory.fi/journeys/api/1/journeys?arrivalTime=08:00:00 will return JOURNEYS which last call arrives at STOP POINT at 08:20:00+0300
* http://data.itsfactory.fi/journeys/api/1/journeys?arrivalTime=08:00:00 will return JOURNEYS which last call arrives at STOP POINT at 08:20:00+0300
Rivi 276: Rivi 276:


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). For example query:
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). For example query:
* http://data.itsfactory.fi/journeys/api/1/journeys?departureTime=08:00:00&lineId=123 will return JOURNEYS which depart at the given time and are on LINE with id 123
* http://data.itsfactory.fi/journeys/api/1/journeys?departureTime=08:00:00&lineId=2 will return JOURNEYS which depart at the given time and are on LINE with id 2


==== Stop Points ====
==== Stop Points ====
0

muokkausta