mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #2177] [feature]: Allow fire other requests in pre-request scripts #739
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#739
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 @xpol on GitHub (Mar 19, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2177
Is there an existing issue for this?
Summary
Allow run requests before requests.
In pre-request scripts and tests, allow invoking other requests (with their pre-script scripts and tests scripts).
Why should this be worked on?
So that we can do complex requests flow with advanced features:
@AndrewBastin commented on GitHub (Mar 21, 2022):
@xpol can you provide an example scenario where you might want a feature like this ?
@xpol commented on GitHub (Mar 21, 2022):
For example,
I want a login request to get the token, then call the other API like get user information.
@xpol commented on GitHub (Mar 21, 2022):
I know we can fire requests in the script via requests API, like in postman
but I want to reuse existing requests managed by hoppscotch instead of writing scripts like above.
@liyasthomas commented on GitHub (Apr 7, 2022):
Possibly a duplicate of #2205, hence closing.