approved, byrokraatit, ylläpitäjät
0
muokkausta
(→Routes) |
|||
Rivi 210: | Rivi 210: | ||
} | } | ||
... | ... | ||
] | |||
} | |||
} | |||
</pre> | |||
A client can access specific ROUTE'S details by issuing request at http://example.com/journeys/api/routes/123 | |||
This request would produce following response: | |||
<pre> | |||
{ | |||
"headers" : { | |||
"dataValidityPeriod" : { | |||
"validFrom" : "2013-01-01", | |||
"validTo" : "2013-05-31" | |||
}, | |||
"startIndex" : 0, | |||
"pageSize" : 1, | |||
"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", | |||
"departureTime" : "08:00:00+0300", | |||
"dayTypes" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/day-types/weekdays" | |||
} | |||
], | |||
"dayTypeExceptions" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/day-type-exceptions/111" | |||
} | |||
], | |||
"calls" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/calls/1123", | |||
}, | |||
{ | |||
"href" : "http://example.com/journeys/api/calls/1124", | |||
}, | |||
{ | |||
"href" : "http://example.com/journeys/api/calls/1125", | |||
} | |||
] | |||
} | |||
] | |||
} | |||
] | ] | ||
} | } | ||
} | } | ||
</pre> | </pre> |