CRUD routes are provided by Flask-Restless, which uses JSON syntax to provide pagination and search.
Each API call must be identified either with a 10-digit station api_key parameter, or basic HTTP authentication provided by Flask. The API key is preferred for station to server communication.
- http://demo.rootio.org/api/login
- http://demo.rootio.org/api/logout
- http://demo.rootio.org/api/person
- http://demo.rootio.org/api/station
- http://demo.rootio.org/api/program
- http://demo.rootio.org/api/scheduledprogram
- http://demo.rootio.org/api/episode
- http://demo.rootio.org/api/recording
- http://demo.rootio.org/api/phonenumber
- http://demo.rootio.org/api/call
- http://demo.rootio.org/api/message
these do not respond to the ?updated_since parameter
- http://demo.rootio.org/api/station/ID/current_program
- http://demo.rootio.org/api/station/ID/on_air
- http://demo.rootio.org/api/station/ID/next_program
- http://demo.rootio.org/api/station/ID/current_block
- http://demo.rootio.org/api/station/ID/phone_numbers
these have specific datetime parameters
- http://demo.rootio.org/api/station/ID/schedule?all
- http://demo.rootio.org/api/station/ID/schedule?start=2014-03-01&end=2014-04-01
these do respond to the ?updated_since parameter
Flask-Restless provides a powerful search format using JSON syntax
eg: http://demo.rootio.org/api/scheduledprogram?q={"filters":[{"name":"id","op":"gt","val":25}]}
The ?updated_since parameter is provided as an alias to the search syntax for the common case. Passing a valid ISO datetime will limit the results to include only objects updated after that time.
eg: http://demo.rootio.org/api/scheduledprogram?updated_since=2014-03-20T00:00:00Z-8:00