Forum Discussion

shirin1's avatar
shirin1
New Contributor
6 years ago

Depending on parameter how to change response in swagger

Hi,

I want to change the response value depending on the paramter.

for example:-

I want to send response as Cat when 1 parameter and Dog when 2 parameter is passed.

 

 

Thanks,

Shirin Parkar