HydrologicEngineeringCenter / HydrologicEngineeringCenter/cwms-data-api-client
Add method to check whether the client has write access
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8
- Forks
- 12
- Avg merge
- 2h 44m
- Merged PRs (30d)
- 3
Description
Currently we test by checking a 401 error code with a dummy post to the catalog endpoint. From Mike Neilson:
...FYI the swagger-docs output will include security schemas if it can write, that’s better than making a request and it just pollutes the logs (the access log is one line, the failed request is like 10.)
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
Locate the client code that checks write access with a dummy POST to the catalog endpoint and review how the 401 response is handled. Inspect the swagger-docs security schemas as the alternative signal, then add the access-check method and verify that it avoids the extra request and log pollution.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100