Child pages
  • Varaukset

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
curl -u "oma_api_key:" httphttps://opendata.metropolia.fi/r1/reservation/816121

...

Code Block
languagebash
curl -u "oma_api_key:" -X POST httphttps://opendata.metropolia.fi/r1/reservation/search -d '{
   "startDate":"2013-11-22T09:00",
   "endDate":"2013-11-22T15:00", 
   "room":["G205"]
}'

...

Code Block
languagebash
# tiettyjen toteutusten varausten haku
curl -u "oma_api_key:" -X POST httphttps://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 "oma_api_key:" -X POST httphttps://opendata.metropolia.fi/r1/reservation/search -d '{
   "studentGroup":["SB13K2"]
}'

...

Code Block
languagebash
curl -u "oma_api_key:" -X POST httphttps://opendata.metropolia.fi/r1/reservation/search -d '{
   "rangeStart": "2013-11-22T09:00",
   "rangeEnd": "2013-11-22T10:00",
   "building": ["AGRICO"]
}'

...

Code Block
languagebash
curl -u "oma_api_key:" -X POST httphttps://opendata.metropolia.fi/r1/reservation/search -d '{
   "startDate": "2013-11-22T09:00",
   "endDate": "2013-11-22T15:00",
   "building": ["AGRICO"]
}'

...

Code Block
languagebash
curl -u "oma_api_key:" httphttps://opendata.metropolia.fi/r1/reservation/building
Code Block
languagebash
curl -u "oma_api_key:" httphttps://opendata.metropolia.fi/r1/reservation/building/373

...