Intergrating "Swagger UI Extension" into a "REST Easy JaxRS" application of Quarkus
Environment
- Quarkus Build 2.2.5
- OpenJDK 11
- Maven 3.8.1
- RHEL 8
Issue
- How to integrate SwaggerUI into RestEasy JaxRS quarkus Application
Resolution
| Topic of interest | Recordings |
|---|---|
| SwaggerUI with RestEasy Reactive | Recordings |
Its a short demo on Integrating Swagger UI into Quarkus JAX RS RestEasy Application on the fly and Live Coding
Getting started steps to create the application:
To create a maven Based RestEasy JAXRS application in Quarkus
mvn com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.5.Final-redhat-00007:create
-DprojectGroupId=org.acme
-DprojectArtifactId=gettingstarted -DplatformGroupId=com.redhat.quarkus.platform -DplatformArtifactId=quarkus-bom -DplatformVersion=2.2.5.Final-redhat-00007 -Dextensions="quarkus-resteasy"
To List available Extensions
./mvnw quarkus:list-extensions
Adding swagger extension
pom.xml
...
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-openapi</artifactId>
</dependency>..
Useful Ref
- Developing and compiling your Quarkus applications with Apache Maven
- Swagger UI
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments