Groups
Sign in
Groups
Sculptor Generator
Conversations
Labels
About
Send feedback
Help
Advice on adding swagger
36 views
Development
Question
Skip to first unread message
Anton Hughes
unread,
Mar 8, 2015, 10:35:24 AM
3/8/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
3/8/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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