openapi
openapi copied to clipboard
[feature request]: Filter by method for a path
I am using the directive to include some generated API doc into my documentation, and thus using the :paths: parameter.
Would it be possible to select a list of method for each path, to avoid displaying all methods for a path ?
Like:
.. openapi:: my_spec.yml
:paths:
/resource[get,delete]
:encoding: utf-8
Thanks !
I like this proposal a lot. It could also be implemented like this:
.. openapi:: my_spec.yml
:paths:
/resource
:methods:
get, delete
:encoding: utf-8