openapi-processor-spring (webflux) sample project
This is a very simple Spring Boot (gradle & maven) project that is using
-
openapi-processor-spring to generate java interfaces for the api defined in an openapi.yaml file
-
openapi-processor-json to convert the openapi yaml to json format
-
openapi-processor-gradle/openapi-processor-maven plugin to run both processors
The purpose of the sample is to show the setup of the gradle plugin, and the processors for an annotation based Spring WebFlux application.
Running with gradle
Clone the project from GitHub, navigate into the project root folder samples/spring-webflux
and run
../../gradlew bootRun
to start the sample application.
Running with maven
../../mvnw spring-boot:run
Note that the versions in the pom.xml
are probably not up to date.