approved, byrokraatit, ylläpitäjät
0
muokkausta
(→Time) |
(→Lines) |
||
Rivi 41: | Rivi 41: | ||
=== Entity Queries === | === Entity Queries === | ||
==== Lines ==== | ==== Lines ==== | ||
A client can access full list of LINES by making HTTP GET request to url http://example.com/journeys/lines/ | A client can access full list of LINES by making HTTP GET request to url http://example.com/journeys/api/lines/ | ||
This request would produce following response: | This request would produce following response: | ||
Rivi 60: | Rivi 60: | ||
} | } | ||
... | ... | ||
] | |||
} | |||
} | |||
</pre> | |||
A client can access specific LINE'S details by issuing request at http://example.com/journeys/api/lines/123 | |||
This request would produce following response: | |||
<pre> | |||
{ | |||
"headers" : { | |||
"dataValidityPeriod" : { | |||
"validFrom" : "2014-05-01", | |||
"validTo" : "2014-06-30" | |||
} | |||
}, | |||
"data" : { | |||
"lines":[ | |||
{ | |||
"href" : "http://example.com/journeys/api/lines/123", | |||
"name" : "13", | |||
"description" : "Hermia - Lukonmäki - Keskustori - Tesoma - Lamminpää - Ylöjärvi" | |||
} | |||
] | ] | ||
} | } | ||
} | } | ||
</pre> | </pre> |