USACE / USACE/cwms-data-api

V1 of States Endpoint Broken

Open
#640 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

automation-tests
Dominant language
Java
Stars
28
Forks
25
Avg merge
4d 22h
Merged PRs (30d)
20

Description

Automation Testing for CWMSjs - /states

Testing V1 of the /states endpoint

curl -X 'GET' 'https://water.usace.army.mil/cwms-data/states'

returns

{"message":"Formatting error:No Format for this content-type and data type : (application/json, cwms.cda.data.dto.State)","incidentIdentifier":"8527238373666025493","details":{}}

Version 2 works,

Should we migrate the code to V1 and go ahead and remove versioning on this endpoint so that both return results?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the GET /states request and comparing its V1 response and formatting behavior with the working V2 endpoint. Before changing code, clarify whether the goal is to migrate the implementation to V1 or remove versioning; done means the intended endpoint version returns a valid result instead of the reported formatting error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.