How to make a text field drop-down in api documentation on dev portal

Hi All,

In the dev portal how can we make this text field a drop-down using Swagger 2.0,so that instead of writing user can select from drop-down?

Please suggest.

Hi @Vipul,

In Swagger 2.0 you can use “enum” property with parameter to achieve this:

“enum”: [“value1”,“value2”, “value3”]