USACE / USACE/cwms-data-api

Change CLOB default content-type to text/plain

Open
#1,704 0 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.