USACE / USACE/cwms-data-api

CWBI Test /location/group endpoint returning location group without an id

Open
#582 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

curl -X 'GET' \
  'https://cwms-data-test.cwbi.us/cwms-data/location/group?location-category-like=RDL_Findley' \
  -H 'accept: application/json'

Response

[
  {
    "location-category": {
      "office-id": "MVS",
      "id": "RDL_Findley"
    },
    "assigned-locations": []
  }
]

The group-id field should be required and the client does not expect it to be missing.

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 tracing the GET /location/group endpoint and the response model that produces location groups. Reproduce the request shown in the issue, then identify where group-id becomes optional and verify that the response always includes it.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.