micronaut-projects / micronaut-openapi

Generates OpenAPI / Swagger Documentation for Micronaut projects
https://micronaut-projects.github.io/micronaut-openapi/latest/guide/index.html
Apache License 2.0
79 stars 95 forks source link

Kotlin build with gradle as a task? #154

Closed StephenOTT closed 4 years ago

StephenOTT commented 4 years ago

Given the following https://github.com/micronaut-projects/micronaut-openapi/commit/8580053fa8eba6ef7240ebcf32124bb570202f18#diff-be736fa0603c7b3afef21219b6a05e38

Is there a solution to running this as a regular build task? It seems you cant run this within a ide like Intellij as a regular build task. You have to run it manually through terminal.

croudet commented 4 years ago

This is only mandatory if you want to use views (swagger-ui, ...)

croudet commented 4 years ago

if you want to generate views with 1.4.0, you can create a file openapi.properties at the root level of your project dir.

rapidoc.enabled=true
rapidoc.bg-color=#14191f
rapidoc.text-color=#aec2e0

rapipdf.enabled=true
rapipdf.pdf-footer-text=My Company

redoc.enabled=true

swagger-ui.enabled=true
swagger-ui.theme=flattop
StephenOTT commented 4 years ago

Thanks. Works in 1.4.0

StephenOTT commented 4 years ago

Would like a PR for docs update?

croudet commented 4 years ago

I think the doc is up to date, but if you find something missing PRs ar welcome.