What swagger should I use with Jersey 3.0.2 REST Framework?
I am working on a code-first approach in following environment:
- Jetty 11
- Jersey 3.0.2
- Jakarta.ws.rs (since Jetty 11 is part of Jakarta EE 9 big bang)
- Gradle 7.0
I configured the jersey rest framework in the jetty server and it is already detecting all my APIs. This also means I am done annotating my APIs. Now I need to hook up swagger-core into my project. And I am referring -
- Documenting Your Existing APIs guide (OAS Generating During Runtime)
- Swagger setup for Embedded Jetty Server
- Swagger 2.X Integration and Configuration
In one of the links above, it has been mentioned that: Depending on the way Jersey is configured in your web service, you could hook up Swagger Core to your application using Spring, the Jersey’s container Servlet, or manually.
Since I am using Jersey 3.0.2 REST Framework into Jetty, what swagger-core version should I use to hook up swagger into my jersey container's servlet? Or is there a better approach to solve this issue easily?