Warning message

A translation for your language preference does not exist.

Intergrating "Swagger UI Extension" into a "REST Easy JaxRS" application of Quarkus

Solution 作成中 - 更新日時 - 日本語 への翻訳依頼

環境

  • Quarkus Build 2.2.5
  • OpenJDK 11
  • Maven 3.8.1
  • RHEL 8

問題

  • How to integrate SwaggerUI into RestEasy JaxRS quarkus Application

解決策

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

このソリューションは、Red Hat のエンジニアがお客様のサポート中に作成したナレッジコンテンツの大型ライブラリーを提供する Fast-Track Publication Program の一環です。お客様が必要とする知識・情報を即時に提供するために、これらの記事は、未処理・未編集の状態で提示される場合がありますので、予めご了承ください。

コメント