Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.58 KB

Readme.md

File metadata and controls

49 lines (33 loc) · 1.58 KB

modis-snow-server API-DOC

Open Endpoints

Open endpoints require no Authentication.

Catchment Information

Catchment Data

  • 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

Data Processor

Shapefile conversion

Endpoints that require Authentication

Closed endpoints require basic authentication, e.g. curl -u <user>:<password> <url>

Manipulating Catchments

Data Processor

Error Response

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.

Start server

cd /srv/modis-snow-server/
source virtualenv/bin/activate
cd bin/server/
gunicorn --bind 0.0.0.0:8000 server:app --daemon