mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3317] [feature]: support system variables like GUID and UNIX Timestamp #1101
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#1101
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 @james-yin on GitHub (Sep 5, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3317
Is there an existing issue for this?
Summary
Support system variables like GUID and UNIX Timestamp in Hoppscotch. In Postman or REST Client, there's the abilities to include {{$guid}} or {{$timestamp}} in the JSON payload.
Why should this be worked on?
Many of the web API's require a unique identifier for a particular payload request. It's convenient to have that built into the tool.
@jiangying000 commented on GitHub (Dec 21, 2023):
agree, this will be very useful
@shaded013 commented on GitHub (Mar 5, 2024):
Is there a way to add predefined variables to be used as a random variables which we don't need to setup in the pre-request script.
@kishannareshpal commented on GitHub (Feb 7, 2025):
I think this issue can be closed now, as the feature requested here has already been implemented via #3886.
Link to documentation for "Predefined variables": https://docs.hoppscotch.io/documentation/features/variables#variable-scopes