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
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
to swagger-sw...@googlegroups.com
--
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-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rupert Smith

unread,
Mar 4, 2016, 11:50:47 AM3/4/16
to Swagger
 Thursday, March 3, 2016 at 3:51:48 PM UTC, Ron wrote:

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?

Rupert 
Reply all
Reply to author
Forward
0 new messages