Skip to content

Latest commit

 

History

History
executable file
·
53 lines (39 loc) · 2.23 KB

api.md

File metadata and controls

executable file
·
53 lines (39 loc) · 2.23 KB

API

General

CRUD routes are provided by Flask-Restless, which uses JSON syntax to provide pagination and search.

Authentication

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.

Routes

CRUD

Non-CRUD

these do not respond to the ?updated_since parameter

these have specific datetime parameters

these do respond to the ?updated_since parameter

Allow form-data POST

Search Parameters

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}]}

Updated Since

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