scribe-org / scribe-org/Scribe-Server
Add tests for API route registration
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 12
- Forks
- 14
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 4
Description
Terms
- I have searched open and closed feature requests
- I agree to follow Scribe-Server's Code of Conduct
Description
-
Assert all six
/api/v1/*routes are registered, unknown paths 404, wrong methods behave as pinned,/servesstatic/index.htmlastext/html, and trailing-slash redirects work. -
Includes a regression test that
/swagger/index.htmland/docs/index.htmlboth serve —setupSwaggernow callsswaggerFiles.NewHandler()twice, and a refactor back to one shared handler reintroduces the prefix collision fixed earlier. -
An unregistered route returns a clean 404 that looks like a client bug.
Contribution
No response
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 locating API route registration and setupSwagger, then inspect how static/index.html and the /swagger/index.html and /docs/index.html paths are served. Add regression tests for all six /api/v1/* routes, unknown paths, method behavior, root content type, trailing-slash redirects, and both documentation pages; done means these responses match the issue’s requirements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100