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

Add a way to specify a parameter for multiple routes at once #1842

Open
iTrooz opened this issue Jul 11, 2024 · 1 comment
Open

Add a way to specify a parameter for multiple routes at once #1842

iTrooz opened this issue Jul 11, 2024 · 1 comment

Comments

@iTrooz
Copy link

iTrooz commented Jul 11, 2024

Is your feature request related to a problem? Please describe.
I have a bunch of endpoints like this:

/user/{user_name}/posts/{post_id} [GET]
/user/{user_name}/posts/{post_id} [POST]
/user/{user_name}/posts/{post_id} [DELETE]
/user/{user_name}/posts/  [GET]

I'd like to define the {user_name} and {post_id} path params, but without duplicating them their definition (the description being the most problematic) for every endpoint

Describe the solution you'd like
A way to define the path params once when they are used in multiple endpoints. Maybe by defining "global params" by their name ?

Additional context
Apologies if the feature is already present, I could not find it in the README or already opened issues

@Us3r-gitHub
Copy link

I found some information in the documentation that might address your concern. You can find details on how to add multiple paths here: Add Multiple Paths.

Does this help resolve your issue?

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