You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It wasn't immediately clear to me what syntax I would use to document examples and other info for an implicit parameter defined by a symbol in the URL path, e.g.
desc'return a specific check',{headers: SWAGGER_HEADERS,}get'/:id'do
as opposed to
desc'return a specific check',{headers: SWAGGER_HEADERS,}paramsdorequires:id,type: String,documentation: {example: '7',desc: 'Unique Identifier'}endget'/'do
i tried:
get '/:id', documentation: { example: '7', desc: 'Unique Identifier' } do
but that didn't seem to work ... at least the presence of a path parameter generates a little chunk of swagger liks this:
It wasn't immediately clear to me what syntax I would use to document examples and other info for an implicit parameter defined by a symbol in the URL path, e.g.
as opposed to
i tried:
but that didn't seem to work ... at least the presence of a path parameter generates a little chunk of swagger liks this:
but I was wondering if there was some syntax to add an example and/or desc to this ...
The text was updated successfully, but these errors were encountered: