openapi icon indicating copy to clipboard operation
openapi copied to clipboard

[feature request]: Filter by method for a path

Open Kimamisa opened this issue 4 years ago • 1 comments

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 !

Kimamisa avatar Mar 04 '21 07:03 Kimamisa

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

benjaoming avatar Jul 16 '21 10:07 benjaoming