Hi,
I am trying to annotate go code, so that swagger.yaml
can be auto generated (swagger generate spec -o ./swagger.yaml --scan-models
). Unfortunately, I couldn’t find an annotated example where a rest call expects an input parameter of string type and the values is limited to specific list of values.
If I have to assume (swagger serve -F=swagger swagger.yaml
) there will be a drop down menu with these three string value (containers/bundles/web) and the user will chose one of them to make a rest call . Previously I am referring to this documentation to create annotation for an in parameters.
Looks for some code examples.