OpenAPITools / OpenAPITools/openapi-generator
[REQ] consider contextPath on kotlin-server:jaxrs-spec
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
The @Path annotation has the hardcoded / as value. In other libraries there ist the contextPath set as value.
Describe the solution you'd like
I would prefer to have the contextPath as annotation value to specify a kind of base path for an Interface.
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 with modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/api.mustache at the referenced annotation line, then inspect how this template receives or represents path settings. The work is complete when the generated JAX-RS interface can use a specified contextPath as its @Path annotation value, with the existing root-path behavior preserved when no value is provided.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, openapi
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100