|
|
Rivi 268: |
Rivi 268: |
| </pre> | | </pre> |
| ==== Route Patterns ==== | | ==== Route Patterns ==== |
| A client can access paged list of ROUTE PATTERNS by making HTTP GET request to url http://example.com/journeys/api/route-patterns
| | (List of route patterns is not available, clients are expected to navigate to a certain route pattern via lines or 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" : {
| |
| "route-patterns" : [
| |
| {
| |
| "href" : "http://example.com/journeys/api/route-patterns/111",
| |
| "pointsOnRoute": [
| |
| {
| |
| "href" : "http://example.com/journeys/api/points-on-routes/111"
| |
| },
| |
| {
| |
| "href" : "http://example.com/journeys/api/points-on-routes/112"
| |
| },
| |
| {
| |
| "href" : "http://example.com/journeys/api/points-on-routes/113"
| |
| }
| |
| ]
| |
| }
| |
| ...
| |
| ]
| |
| }
| |
| }
| |
| </pre>
| |
|
| |
|
| A client can access specific ROUTE PATTERN'S details by issuing request at http://example.com/journeys/api/route-patterns/111 | | A client can access specific ROUTE PATTERN'S details by issuing request at http://example.com/journeys/api/route-patterns/111 |