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] support for path variables #519

Closed
pklopotowski opened this issue Oct 12, 2017 · 12 comments
Closed

[Feature Request] support for path variables #519

pklopotowski opened this issue Oct 12, 2017 · 12 comments

Comments

@pklopotowski
Copy link

Would be nice to have a support for path variables:
/users/{userId}/numbers
Currently we can only use an environment variable in that case. But this is a very inconvenient way and inflexible because this parameter may change for each request and is environment independent.

@gschier
Copy link
Contributor

gschier commented Oct 12, 2017

Thanks for the request @pklopotowski! This seems like a duplicate of #203

Can you go over that issue and let me know what you think?

@pklopotowski
Copy link
Author

@gschier Definitely, this is the same type of requirements. I was searching for [Feature Request] marker, but #203 is marked as [Proposal], my inattention.
But let's focus on the problem. As you wrote, it may be done by placeholders. This gives us flexibility and shows a changeable/configurable part of a request.

@gschier
Copy link
Contributor

gschier commented Oct 12, 2017

Exactly, meaning it can work for other things besides URL path variables. 😄

@gschier
Copy link
Contributor

gschier commented Oct 31, 2017

Closing this one, as #203 seems like an appropriate solution.

@gschier gschier closed this as completed Oct 31, 2017
@pklopotowski
Copy link
Author

ok, thx. I will be waiting for this feature

@mpern
Copy link

mpern commented Apr 28, 2020

Any chance that #203 gets added to this roadmap?

It has a lot of upvotes and a glaringly missing feature of Insomnia.

@phylor
Copy link

phylor commented Jan 26, 2021

Note that #203 proposes to use a special kind of template syntax such as {% my_variable %} within the URL. When importing Open API specifications, the URL will contain {my_variable} (as the OP suggests). So this might not be the exactly same use case.

@mugi-luffy
Copy link

this should not be closed
insomnia should support open api path parameters {my_variable} and allow to set them the same way as query parameters.
Postman does the exact same thing

@dmitriybraginets
Copy link

Hi! Any progress here?

@quiquelhappy
Copy link

why is this closed? lol

@remy727
Copy link

remy727 commented Dec 29, 2023

Any update on this?

@risalfajar
Copy link

This is so sad, someone has even done this for them, and they choose to ignore him.

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

9 participants