Please look at https://github.com/swagger-api/swagger-core and
https://github.com/springfox/springfox for examples of how to do this. There
is also a repository here:
Full of sample integrations.
> On Sep 19, 2016, at 5:48 AM, Ajay Kumar <ajay.ku...@tothenew.com> wrote:
> Is there any way to generate the swagger document directly from Java source
> There must be some classes in swagger source code that is responsible for
> scanning/parsing all the swagger resource (i.e java classes annotated with
> swagger specific annotation) to generate the swagger document. Could anybody
> help me to find out those classes and the required methods in swagger source
> If possible at-least let me know how swagger works internally or any
> supporting documents/tutorial meant for same will be highly appreciated.
> We have many project where we want to integrate swagger with grails(version >
> Although grails is based on spring, the resource URL is mapped differently in
> grails than in Spring.
> In Spring, end URL can be exposed using @RequestMapping annotation and
> servlet mapping, while the end URL in grails is not exposed directly in
> similar fashion.
> I also do not want to make any changes at servlet label. I also tried some
> grails plugin but they are not up-to date, too buggy and covers only specific
> use cases.
> So I am planning to write my own plugin meant for swagger integration with
> grails. But at the same time I also want to ensure that it should be based on
> latest swagger version and not the old one.
> You received this message because you are subscribed to the Google Groups
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to swagger-swaggersocket+unsubscr...@googlegroups.com
> For more options, visit https://groups.google.com/d/optout
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.