approved, byrokraatit, ylläpitäjät
0
muokkausta
(→Lines) |
|||
Rivi 182: | Rivi 182: | ||
==== Routes ==== | ==== Routes ==== | ||
A client can access paged list of ROUTES by making HTTP GET request to url http://example.com/journeys/api/routes | |||
This request would produce following response: | |||
<pre> | |||
{ | |||
"headers" : { | |||
"dataValidityPeriod" : { | |||
"validFrom" : "2013-01-01", | |||
"validTo" : "2013-05-31" | |||
}, | |||
"startIndex" : 0, | |||
"pageSize" : 10, | |||
"moreData" : false | |||
}, | |||
"data" : { | |||
"routes" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/routes/123", | |||
"pattern" : { | |||
"href" : "http://example.com/journeys/api/route-patterns/111" | |||
}, | |||
"journeys" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/journeys/111", | |||
} | |||
] | |||
} | |||
... | |||
] | |||
} | |||
} | |||
</pre> |