Hi,

Would be really helpful, if you can elaborate it a bit. How do i create the 
'schema object' which you mentioned?

On Thursday, 1 June 2017 20:28:40 UTC+5:30, 杨佳欢 wrote:
>
> Hi Chenbaga,
>
> you should create a schema object under the parameter.
>
> Jan
>
> 在 2017年6月1日星期四 UTC+2上午10:48:28,Chenbaga Murugan写道:
>>
>>
>> <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