Ero sivun ”Journeys API” versioiden välillä

860 merkkiä lisätty ,  5. heinäkuuta 2014 kello 03.16
Rivi 239: Rivi 239:
* 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
* http://example.com/journeys/api/journeys?lastStopPointId=111 will return JOURNEYS which last 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).
==== Stop Points ====
A client can access specific STOP POINTS details by issuing request at http://example.com/journeys/api/stop-points/222
This request would produce following response:
<pre>
{
    "headers" : {
        "startIndex" : 0,
        "pageSize" : 1,
        "moreData" : false
    },
    "data" : {
        "stopPoints" : [
            {
                "href" : "http://example.com/journeys/api/stop-points/222",
                "location" : "61.44960,23.87165",
                "name" : "Hermia",
                "shortName" : "3633"           
            }
        ]
    }
}
</pre>
A client can search STOP POINTS by issuing following requests:<br>


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

muokkausta