Open endpoints require no Authentication.
- Catchment List :
GET /catchments
- Catchment :
GET /catchments/<catchmentid>
- Timeseries List :
GET /catchments/<catchmentid>/timeseries
- Timeseries :
GET /catchments/<catchmentid>/timeseries/<timeseriesid>
- Geotiff List :
GET /catchments/<catchmentid>/geotiffs
- Geotiff :
GET /catchments/<catchmentid>/geotiffs/<geotiffid>
- Geojson :
GET /catchments/<catchmentid>/geojson
- View Data Processor Status :
GET /data_processor
- Shapefile2json :
POST /shapefile2geojson
Closed endpoints require basic authentication, e.g. curl -u <user>:<password> <url>
- Add Catchment :
POST /catchments
- Delete Catchment :
DELETE /catchments/<catchmentid>
- Trigger Execution :
PUT /data_processor
The error responses to expect are listed in each description. Every error response contains a json in its body with the field "message". This field gives more detailed information about what went wrong and might help to identify and solve the problem.
cd /srv/modis-snow-server/
source virtualenv/bin/activate
cd bin/server/
gunicorn --bind 0.0.0.0:8000 server:app --daemon