approved, byrokraatit, ylläpitäjät
0
muokkausta
(→Routes) |
(→Lines) |
||
Rivi 125: | Rivi 125: | ||
"href" : "http://example.com/journeys/api/lines/123", | "href" : "http://example.com/journeys/api/lines/123", | ||
"name" : "13", | "name" : "13", | ||
"description" : "Hermia - Lukonmäki - Keskustori - Tesoma - Lamminpää - Ylöjärvi" | "description" : "Hermia - Lukonmäki - Keskustori - Tesoma - Lamminpää - Ylöjärvi" | ||
} | } | ||
] | ] | ||
Rivi 146: | Rivi 133: | ||
A client can search LINES by issuing following requests:<br> | A client can search LINES by issuing following requests:<br> | ||
* http://example.com/journeys/api/lines will return paged list of all LINES | * http://example.com/journeys/api/lines will return paged list of all LINES | ||
* http://example.com/journeys/api/lines?lineName=13 will return LINES which name contains text "13" (case-insensitive) | * http://example.com/journeys/api/lines?lineName=13 will return LINES which name contains text "13" (case-insensitive) | ||
* http://example.com/journeys/api/lines?lineDescription=Hermia will return LINES which description contains text "Hermia" (case-insensitive) | * http://example.com/journeys/api/lines?lineDescription=Hermia will return LINES which description contains text "Hermia" (case-insensitive) | ||
These queries return response like above, with entities matching the criteria. All query parameters are exclusive (if you specify multiple conditions, the conditions are ANDed together). | These queries return response like above, with entities matching the criteria. All query parameters are exclusive (if you specify multiple conditions, the conditions are ANDed together). |