This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
cURL importer: Parse environment variables #107
davidgrisham
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm hoping to import
curl
requests and have Insomnia environment variables parsed + translated on import. For example, I've tried to import acurl
request that looks something like:hoping the
apiURL
variable would be preserved in the Insomnia request, like so:Currently, with that specific example the URL isn't parsed at all and is just empty upon import.
I've looked around quite a bit through both the Insomnia and Insomnium repos but I'm not seeing this specific feature anywhere. For me, the best syntax would be to support simple shell environment variables, e.g.
My specific use case is that I'm writing a tool to generate
curl
requests for everything in my API, and I'd like to easily import those into Insomnia. This is why I mention the shell environment variable syntax, because then I could easily have environment-based curl commands that can be imported into Insomnia and, with this feature, just swap to using the Insomnia environment.Edit:
Ideally this would apply to everything in the query, including e.g. headers:
Beta Was this translation helpful? Give feedback.
All reactions