Skip to content

Basins Endpoint Broken #637

Open
Open
@krowvin

Description

@krowvin

Automation Testing for CWMSjs - /Basins

Attempting the /cwms-data/basins endpoint from various means gives no results.

Presuming at least LRH has basins in there database I would expect to get something back.

Using Swagger / CURL default value for LRH returns

(Mimetype is set to pg+json?)

curl -X 'GET' \
  'https://cwms-data.usace.army.mil/cwms-data/basins?office=LRH' \
  -H 'accept: application/vnd.named+pg+json'

Using a normal mimetype (application/json) gives

curl -X 'GET' \
   'https://cwms-data.usace.army.mil/cwms-data/basins?office=LRH' \
   -H 'accept: application/json'

image
An empty string.
I would not expect there to be a version 2, but I tried it. But it also returns the empty string.

It is the same for other districts.

If the basins endpoint is not complete should we consider moving it out of PROD?

EDIT:
If this is an issue with districts not having data in the tables the endpoint looks at, can we consider adding the POST method to start getting data in without needing to use the SQL directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    automation-testsIssue was derived from some form of QA/QC automation testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions