Closed philsturgeon closed 3 years ago
@philsturgeon,
You can see here, sample configuration of the maven plugin for the sample you have mentioned: https://github.com/springdoc/springdoc-openapi-demos/commit/3f6c97729f73f445ad4f0f306a7ea1aed57daa48
Thank you!
Hey there, I am not a Java or Spring Boot developer but I'm trying to truck my way through all this to get a hello world running for an article, and.... weeeell thing's aren't off to a great start. Hoping somebody here can help.
I've got cloned down https://github.com/springdoc/springdoc-openapi-demos and I'm in
springdoc-openapi-spring-boot-2-webmvc
. I can run the site withmvn spring-boot:run
and if I go tohttp://localhost:8080
then I see good old Swagger UI running in the browser.Now, I'd like to be able to run an export command, which will take all the annotations and pump out the YAML, which this plugin should be able to do, but for some reason it's talking about integration-tests and I don't have any of those, as its just a demo application.
Is there a way I can just run a command?
For example, the PHP equivilent is swagger-php, and for that you just run the following:
This means I can enable all sorts of workflows, CI, deployments, etc without needing to wrap ot all up with tests somehow. Could there be a custom maven command I run? Or could it be part of
mvn site
or something?For context I'm getting an error when I run
mvn integration-test
.