mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3825] [MERGED] feat: request variables #4537
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#4537
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?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3825
Author: @nivedin
Created: 2/14/2024
Status: ✅ Merged
Merged: 3/7/2024
Merged by: @AndrewBastin
Base:
release/2024.3.0← Head:feat/request-variable📝 Commits (10+)
170ec15refactor: add v2 request schema0ed0637feat: add request variable2a0000cchore: remove unused file11e8ba7refactor: add request variables to request runner flowc27e1berefactor: update env tooltipb278691chore: update history3596331refactor: add check for request variables for env inspectorca1a4ecrefactor: update codegen and curlparser7114f4fchore: update test cases in appc8009aechore: update test cases in cli📊 Changes
54 files changed (+1273 additions, -506 deletions)
View changed files
📝
packages/hoppscotch-cli/src/__tests__/samples/collections/collection-level-headers-auth-coll.json(+15 -9)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/env-flag-tests-coll.json(+3 -2)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/fails-coll.json(+6 -4)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/malformed-coll.json(+7 -5)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/notjson-coll.txt(+4 -3)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/passes-coll.json(+6 -4)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/pre-req-script-env-var-persistence-coll.json(+3 -2)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/req-body-env-vars-coll.json(+3 -2)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/secret-envs-coll.json(+12 -6)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/secret-envs-persistence-coll.json(+12 -6)📝
packages/hoppscotch-cli/src/__tests__/samples/collections/secret-envs-persistence-scripting-coll.json(+3 -2)📝
packages/hoppscotch-common/assets/scss/styles.scss(+14 -4)📝
packages/hoppscotch-common/locales/en.json(+2 -0)📝
packages/hoppscotch-common/src/components/embeds/index.vue(+16 -2)📝
packages/hoppscotch-common/src/components/http/Authorization.vue(+16 -5)📝
packages/hoppscotch-common/src/components/http/Body.vue(+4 -0)📝
packages/hoppscotch-common/src/components/http/BodyParameters.vue(+6 -0)📝
packages/hoppscotch-common/src/components/http/CodegenModal.vue(+21 -1)📝
packages/hoppscotch-common/src/components/http/Headers.vue(+11 -2)📝
packages/hoppscotch-common/src/components/http/OAuth2Authorization.vue(+26 -4)...and 34 more files
📄 Description
Closes HFE-404 HFE-432
Description
This PR add a feature which will provide users to specify a variable that is scoped to a request.
Request variables are variables whose scope is limited to the request. Users can now specify request variables using the notation
<<variable>.api.hoppscotch.io/user/<<variable>>Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.