<https://lh3.googleusercontent.com/-irK51T1cz24/WS_UmbFeAGI/AAAAAAAAQZM/xzgxg6f59aUfaz9zt-EvP9S9EWrhqJkSgCLcB/s1600/Screen%2BShot%2B2017-06-01%2Bat%2B1.50.36%2BPM.png>
Hi All,

I am using Swagger UI to document my REST API developed in Jersey + 
SpringBoot. I would like to provide sample JSON body for one of my POST 
endpoint. The json has various fields ranging from Date, String, Enums 
etc.. What is the right way to populate the body with a sample JSON, with 
some default values for all the fields. When the 'Try Out' button is 
clicked, the request should directly work with the sample input.

Attaching the screenshot of one such service, where i came across. I am not 
sure how to achieve the same in my service.

<https://lh3.googleusercontent.com/-irK51T1cz24/WS_UmbFeAGI/AAAAAAAAQZM/xzgxg6f59aUfaz9zt-EvP9S9EWrhqJkSgCLcB/s1600/Screen%2BShot%2B2017-06-01%2Bat%2B1.50.36%2BPM.png>
Thanks
Chenbaga

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to