Main objects are:

A format parameter is mandatory

URL endpoints are subject to change because the API is still a moving target.

If you have questions regarding the API interface please contact with mail Leon Berenschot or phone 06-30326921

Agenda

Attributes (XML/JSON)

#index

http://burgerweeshuis.nl/api/v2/events.:format

Formats:

Returns: all upcoming events

#past

http://burgerweeshuis.nl/api/v2/events/past.:format(?page=:page)

Formats:

Returns: 15 records per page
http://burgerweeshuis.nl/api/v2/events/past.xml
http://burgerweeshuis.nl/api/v2/events/past.json
http://burgerweeshuis.nl/api/v2/events/past.xml?page=2
http://burgerweeshuis.nl/api/v2/events/past.json?page=2

#confirmed

http://burgerweeshuis.nl/api/v2/events/confirmed.:format

Formats:

Returns: 10 records

#show

http://burgerweeshuis.nl/api/v2/events/:id.:format

Formats:

Returns: 1 record

#calendar

http://burgerweeshuis.nl/api/v2/events/calendar/:year(/:month(/:day)).:format

Formats:

Returns: all records for given filter

Nieuws

attributes

#index

http://burgerweeshuis.nl/api/v2/news.:format(?page=:page)

Formats:

Returns: 10 records per page

#show

http://burgerweeshuis.nl/api/v2/news/:id.:format

Formats:

Returns: 1 record

Search

http://burgerweeshuis.nl/api/v2/search.:format?q=:query

Formats:

Returns: an array mixed with News and Event objects

note: this method needs work, the returned array should be rooted properly, a.k.a. the collection contains News and Event objects and not only search
note: When there is no q parameter given the server will respond with http status 406 Not Acceptable

http://burgerweeshuis.nl/api/v2/search.xml?q=de%20staat
http://burgerweeshuis.nl/api/v2/search.json?q=de%20staat%

Tips

attributes

#index

http://burgerweeshuis.nl/api/v2/tips.:format

Formats:

Returns: 2 records (latest 2 tips)

#show

http://burgerweeshuis.nl/api/v2/tips/:id.:format

Formats:

Returns: 1 record

Media

attributes

#index

http://burgerweeshuis.nl/api/v2/media.:format

Formats:

Returns: 15 records