Advice on adding swagger

36 views
Skip to first unread message

Anton Hughes

unread,
Mar 8, 2015, 10:35:24 AM3/8/15
to sculptor...@googlegroups.com
Hi

I'm interested in adding swagger documentation capabilities to Sculptor.

Can you recommend what templates I need to override in order to achieve this?

Thanks and regards

Torsten Juergeleit

unread,
Mar 8, 2015, 12:12:10 PM3/8/15
to sculptor...@googlegroups.com
To add Swagger annotations to the sculptor-generated resource classes override the corresponding methods in the ResourceTmpl:
  • springControllerAnnotation() for the class annotations
  • resourceMethodAnnotation() for the method annotations
To generate a new controller for the Swagger documentation endpoint override the method root() in the RootTmpl.

Don't forget to forward to the overridden implementation by calling the next() method in your extension methods.

/Torsten
Reply all
Reply to author
Forward
0 new messages