rapidoc-spring-boot

Rapidoc Open Api UI for Spring Boot

MIT License

Stars
7

= Rapidoc Spring Boot Library :toc:

TLDR: Modern Swagger UI for your Open Api specification in Spring Boot services.

== Who is expected to use this library?

== How UI looks like?

image::rapidoc-ui.png[width=800]

Or have a look here: https://rapidocweb.com/examples/petstore-extended.html

== How to configure?

. [Important] Remove SpringDoc and Swagger UI dependencies + Make sure that there is no org.springdoc : springdoc-openapi-ui and org.webjars : swagger-ui dependencies on classpath.

. Add dependency com.playtika : rapidoc-spring-boot
+

[source,xml]

. Configure properties +

|=== |Property |Description |Default value

|openapi.rapidoc.enabled |Enables/disables autoconfiguration for Rapidoc. |true

|openapi.rapidoc.open-api-spec.file-name |Name of the Open Api Spec file. |openapi.yaml

|openapi.rapidoc.open-api-spec.path |Path to the Open Api Spec file inside /src/main/resources folder. |/openapi/

|===

== Available endpoints

Library exposes the following endpoints:

  • /v3/api-docs -- provides Open Api Specification file;
  • /swagger-ui.html -- provides RapiDoc UI for the Open Api Specification.

== Demo project

Demo project is located in module rapidoc-spring-boot-demo. Start application and hit http://localhost:8080/swagger-ui.html in browser.

Related Projects