AgroDataCube / api-v1

AgroDataCube API service Version 1 - A newer version is in use now.
1 stars 0 forks source link

Token usage status request fixes #61

Closed robknapen closed 4 years ago

robknapen commented 6 years ago

The new request (api/v1/rest/status) to retrieve token usage status can use two improvements:

  1. It works without including a token in the header. In that case it returns valid json with status ok but empty usage info. Better to return the "token required" message, like many other API requests do.
  2. The request returns the internal SQL query used, such details need (should) not be surfaced to the end users. Remove the field from the response json please.
yke commented 4 years ago

Changed in V2