Skip to content

HydroDS Web API Description

Pabitra Dash edited this page Sep 4, 2015 · 9 revisions

##HydroDS Web API##

Web API Response Format:

  • HTTP Code: 200
    • A JSON dictionary with 3 keys
      • 'success': true or false
      • 'data': a list of values (empty if success key has value of false)
      • 'error': a list of messages (empty if success key has value of true)
  • HTTP Code: 400
    • A JSON dictionary with keys representing each of the problematic query parameters and a corresponding error message
  • HTTP Code: 401
    • A JSON dictionary: {'details':'Invalid username/password.'}
  • HTTP Code: 404
    • A JSON dictionary: {'detail': 'message indicating what was not found'}
  • HTTP Code:405
    • A JSON dictionary: {"detail": 'a message indicating what HTTP method is not allowed.'}

##Web API end point for listing supported services:

##Web API end point for getting information on a specific service:

Clone this wiki locally