approved, byrokraatit, ylläpitäjät
0
muokkausta
Rivi 372: | Rivi 372: | ||
} | } | ||
</pre> | </pre> | ||
==== DayTypes ==== | |||
A client can access paged list of DAY TYPES by making HTTP GET request to url http://example.com/journeys/api/day-types | |||
This request would produce following response: | |||
<pre> | |||
{ | |||
"headers" : { | |||
"dataValidityPeriod" : { | |||
"validFrom" : "2013-01-01", | |||
"validTo" : "2013-05-31" | |||
}, | |||
"startIndex" : 0, | |||
"pageSize" : 10, | |||
"moreData" : false | |||
}, | |||
"data" : { | |||
"dayTypes" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/day-types/weekdays", | |||
"properties" : [ | |||
{ | |||
"daysOfWeek" : "Monday,Tuesday,Wednesday,Thursday,Friday" | |||
} | |||
] | |||
} | |||
... | |||
] | |||
} | |||
} | |||
</pre> | |||
A client can access specific DAY TYPE'S details by for example issuing request at http://example.com/journeys/api/day-types/weekdays | |||
This request would produce following response: | |||
<pre> | |||
{ | |||
"headers" : { | |||
"dataValidityPeriod" : { | |||
"validFrom" : "2013-01-01", | |||
"validTo" : "2013-05-31" | |||
}, | |||
"startIndex" : 0, | |||
"pageSize" : 1, | |||
"moreData" : false | |||
}, | |||
"data" : { | |||
"dayTypes" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/day-types/weekdays", | |||
"properties" : [ | |||
{ | |||
"daysOfWeek" : "Monday,Tuesday,Wednesday,Thursday,Friday" | |||
} | |||
] | |||
} | |||
] | |||
} | |||
} | |||
</pre> | |||
A client can also search LINES by issuing following requests:<br> | |||
* http://example.com/journeys/api/xxx?name=13 will return XXX which name contains text "13" (case-insensitive) | |||
=== Search Queries === | === Search Queries === | ||
TBW | TBW |