danielgtaylor / danielgtaylor/huma
How to add versioning to my API using huma?
- Dominant language
- Go
- Stars
- 4.4k
- Forks
- 285
- Avg merge
- 40m
- Merged PRs (30d)
- 1
Description
I found some configurations for prefixes, but it seems that's not it. Is there a way to register a route without a prefix and huma mechanism will choose between versions if we implement them (I'm aware that it needs to be configured but I'm searching for a best way)?
I have api versioning but i would like to add it into huma so i can have all versions in my API docs.
Some example would be amazing.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing Huma's route-registration and OpenAPI-documentation entry points, focusing on how prefixes and versioned routes are represented. Compare the desired versioned API documentation with the current configuration and identify the supported behavior or missing design; done means all API versions are registered and visible in the generated docs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, openapi
- Domain
- api, documentation
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100