mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #2263] [feature]: Set env vars on request link as URL params #781
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#781
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leomp12 on GitHub (Apr 13, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2263
Is there an existing issue for this?
Summary
Support setting fallback value to variables through request link (generated from copy link button) URL params, with something like
https://hopp.sh/r/nOWZfsljckVj?env:storeId=1234&env:cartId=5678.Why should this be worked on?
It would be helpful to share to end users the same request that you are using in development, working on just one Send click without the need to set up environment manually.
@leomp12 commented on GitHub (Apr 14, 2022):
And... I can give it a try if you want me to
@AndrewBastin commented on GitHub (Apr 19, 2022):
This is actually a solid idea which we can implement. Our major concerns are more regarding how we will express this through the UX of the app. For example, how will the Environment be represented, will a new environment be created for storing this (how will this work when this link is visited multiple times ?) should it be in Global variables etc. ?
We are looking for suggestions if there are any.
@leomp12 commented on GitHub (Apr 19, 2022):
Imo it should just set environment variables (global) not set yet.
I mean, in first access to
https://hopp.sh/r/nOWZfsljckVj?env:storeId=1234, if user doesn't havestoreIdglobal env var, it would be automatically set to 1234, then user may change this value to 5678 and if he accesses the link again nothing would happen withstoreIdvariable, would keep the value 5678.