cancel
Showing results for 
Search instead for 
Did you mean: 

POST example body using Annotations

Highlighted

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..

New Here?
Join us and watch the welcome video:
Top Kudoed Authors