Forum Discussion

ashutosh_gupta's avatar
6 years ago

POST example body using Annotations

Hi,

I am using swagger 2.9.x in spring boot application. Here I want to expose JSON / XML example body for POST request.
But the problem is .. the schema model has nested types and version like V1, V2..
How to show the specific model as Post example body .. ??

In other way... you can understand the Problem .. like I have a base model class .. Animal.. n some sub classes like Dog, Cat .. etc.. Now I have to show the Cat or Dog model as the example POST method body.. in Swaggar UI..
I am using annotations..

Please suggest me the way..

No RepliesBe the first to reply