mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3459] [feature]: Automated parsing of parameters from a prefilled URL #1170
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#1170
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 @BladedShip on GitHub (Oct 17, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3459
Is there an existing issue for this?
Summary
When pasting a URL that already contains URL parameters, Hoppscotch will automatically parse the URL and add the appropriate parameters to the interface. Currently, when a URL is pasted in, the parameters within the Hoppscotch app remain empty, but the URL still contains parameters within it. This feature would automatically move all those parameters into the interface, extracting them from the URL. Optionally, it can also update the URL based on the parameters and display the final request URL for reference.
Current Behavior:
Feature:
Why should this be worked on?
I recently switched from using Postman to Hoppscotch, and this is one of the only features that I seem to miss from it. I would really like to work on it myself, and it would be appreciated if someone could help me with this.
@thetronjohnson commented on GitHub (Oct 17, 2023):
Hi @BladedShip if you select the entire URL, you should be able to use our context menu feature to quickly move the parameters in the URL to the parameters section.
@BladedShip commented on GitHub (Oct 17, 2023):
What I had in mind was for it to automatically perform this action when you paste a link. After that, if the user decided to remove/backspace the URL params from the endpoint, the same change would reflect in the URL parameters tab. I believe this would provide a more developer-friendly experience, rather than having it hidden in a context menu.
@liyasthomas commented on GitHub (Oct 17, 2023):
@BladedShip thanks for your feedback. As mentioned in https://github.com/hoppscotch/hoppscotch/issues/2353#issuecomment-1135000877
As of now, you can move parameters from the URL input field to the "Parameters" section by selecting desired parameters or the entire URL and clicking "Add to parameters".
Possibly a duplicate of #2353, #2894, and #2227 hence closing.