Change CLOB default content-type to text/plain
Open
Nobody has claimed this yet.
enhancement
good first issue
priority:medium
- Dominant language
- Java
- Stars
- 28
- Forks
- 25
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 20
Description
Discussed in https://github.com/USACE/cwms-data-api/discussions/1620
Originally posted by DanielTOsborne March 4, 2026
For behavior parity with the blob endpoint, I want to suggest changing the clob GET endpoint to return the raw clob data as text/plain by default.
If you want the metadata, pass the accept header of application/json.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading discussion 1620 and locating the CLOB GET endpoint in the Java service. Verify the current default response and its handling of Accept headers, then make the endpoint return raw CLOB data as text/plain by default and metadata as application/json when requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100