How to load OpenAPI YAML specification from external JAR in Spring Boot 3

2 weeks ago 22
ARTICLE AD BOX

I have an openapi.yml file (OpenAPI 3.0 specification) in an external JAR library. How can I configure Springdoc OpenAPI + Swagger UI to display this specification from the external JAR instead of generating it automatically from the code? I am using Kotlin + Webflux + Spring Boot 3.

I have already added all the necessary dependencies. I have checked that swager ui and api api-docs are open. How can I use yml from an external library now?

openapi.yml looks like:

openapi: 3.0.0 info: title: service integration description: rest API for service integration. version: 1.0.0 servers: - url: https:// paths: /rest-api/v3/entry: ...
Read Entire Article