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

Not applicable

Hi All,

1818-dev-portal.png

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.

0 1 271
1 REPLY 1

Hi @Vipul,

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

"enum": ["value1","value2", "value3"]