...
Code Block | ||
---|---|---|
| ||
curl -u "metropoliaoma_api_publickey:" http://opendata.metropolia.fi/r1/reservation/816121 |
...
Code Block | ||
---|---|---|
| ||
curl -u "metropoliaoma_api_publickey:" -X POST http://opendata.metropolia.fi/r1/reservation/search -d '{ "startDate":"2013-11-22T09:00", "endDate":"2013-11-22T15:00", "room":["G205"] }' |
...
Code Block | ||
---|---|---|
| ||
# tiettyjen toteutusten varausten haku curl -u "metropoliaoma_api_publickey:" -X POST http://opendata.metropolia.fi/r1/reservation/search -d '{ "realization":["SB00AA01-2000", "SB00AA03-2000", "SB00AA04-2000", "SB00AA06-2001"] }' # tietyn ryhmän varausten haku. Huomaa että et voi samassa pyynnössä hakea sekä tiettyjen toteutusten # että ryhmien varauksia koska hakuehto eri tyyppisten kenttien välillä on AND curl -u "metropoliaoma_api_publickey:" -X POST http://opendata.metropolia.fi/r1/reservation/search -d '{ "studentGroup":["SB13K2"] }' |
...
Code Block | ||
---|---|---|
| ||
curl -u "metropoliaoma_api_publickey:" -X POST http://opendata.metropolia.fi/r1/reservation/search -d '{ "rangeStart": "2013-11-22T09:00", "rangeEnd": "2013-11-22T10:00", "building": ["AGRICO"] }' |
...
Code Block | ||
---|---|---|
| ||
curl -u "metropoliaoma_api_publickey:" -X POST http://opendata.metropolia.fi/r1/reservation/search -d '{ "startDate": "2013-11-22T09:00", "endDate": "2013-11-22T15:00", "building": ["AGRICO"] }' |
...
Code Block | ||
---|---|---|
| ||
curl -u "metropoliaoma_api_publickey:" http://opendata.metropolia.fi/r1/reservation/building |
Code Block | ||
---|---|---|
| ||
curl -u "metropoliaoma_api_publickey:" http://opendata.metropolia.fi/r1/reservation/building/373 |
...