OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.57k stars 6.28k forks source link

[REQ] Add support for generating Quarkus Server Stubs #6997

Open pratikmallya opened 3 years ago

pratikmallya commented 3 years ago

Is your feature request related to a problem? Please describe.

As a user of Quarkus, I would love the ability for open-api codegen to generate opinionated, quarkus oriented server stubs that I could then use to build a quarkus based API.

Describe the solution you'd like

The codegen would probably be almost identical to JAX-RS resteasy; the difference would be in the README and the metadata (dependencies and such) around running a Quarkus server. Ideally, the user should be able to take the generated code and fill it in to get a fully functional Quarkus powered API.

Describe alternatives you've considered

Its possible to just use the JAX-RS generator and use the generated interfaces in a quarkus webapp.

Additional context

The Quarkus issue for doing this is here: https://github.com/quarkusio/quarkus/issues/3905

wing328 commented 3 years ago

@pratikmallya thanks for the suggestion. Would you have time to contribute the Quarkus server stub generator?

ruedigerk commented 3 years ago

The jaxrs-spec generator has a "library" option for Quarkus. Is that what you are looking for?

ruedigerk commented 3 years ago

https://openapi-generator.tech/docs/generators/jaxrs-spec