Closed hohwille closed 3 years ago
Some hints to implement this feature:
generate
mojo can only generate HTML documentation out of the service-metadata.swagger.json
/OpenApi.json
file out of the metadata.@Mojo( name = "generate" ...
with something like @Mojo( name = "openapi"
OpenApi.json.vm
file and generate the JSON with it. Then the only thing to do additionally would be to reconfigure the template from Service-Documentation.html.vm
to OpenApi.json.vm
and you are doneDone with PR #29.
It would be a nice feature extension to generate an OpenAPI specification (aka swagger.json). The collected metadata already contains most information. Creating a new Mojo that allows to write this as JSON to the disc should be no big deal...