steamcleaner / swagger-grails

Swagger Grails Plugin
MIT License
13 stars 5 forks source link

how to generate swagger document https://raw.githubusercontent.com/steamcleaner/swagger-grails/master/src/test/resources/author-controller.png #3

Closed rushdis closed 4 years ago

steamcleaner commented 4 years ago

I've updated the README to include some extra information on how to access the swagger JSON.

This plugin will only generate the JSON representation of your endpoints. You'll need to implement your own swagger-ui to consume the JSON.

If your UrlMappings file includes the default "/$controller/$action?/$id?(.$format)?" mapping then the JSON will be acessible by hitting http://localhost:8080/swagger/api. This endpoint can be customized by adding "/custom/swagger/endpoint"(controller: "swagger", action: "api") to your UrlMappings file.