Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request]: Filter by method for a path #108

Open
Kimamisa opened this issue Mar 4, 2021 · 1 comment
Open

[feature request]: Filter by method for a path #108

Kimamisa opened this issue Mar 4, 2021 · 1 comment

Comments

@Kimamisa
Copy link

Kimamisa commented Mar 4, 2021

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 !

@benjaoming
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants