Documenting ApiModel using static JSON schema with Jersey 2 + Swagger
195 views
Skip to first unread message
Miika Alonen
unread,
Mar 3, 2016, 2:36:53 AM3/3/16
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 Swagger
Hi,
I have a case where some of the API responses are fetched directly from the graph database as JSON. I would like to document these API:s to look similar as using ApiModel and ApiModelProperty annotations. Is it somehow possible to document the model for the swagger ui using reference to external (static) JSON schema model?
Ron Ratovsky
unread,
Mar 3, 2016, 10:51:48 AM3/3/16
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
Looks like what I need. How do you use this? Do you put in the full path of a class as the string value of 'reference'? Or is this where you put a json-schema reference? If its a reference to some piece of json-schema, how do you get that added to the generated docs too?