mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #2576] [feature]: Document build request from url params #856
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#856
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 @tzvc on GitHub (Aug 11, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2576
Is there an existing issue for this?
Summary
I figured that building a request from url params is possible (ex.
hoppscotch.io?url=<url>&method=<method>) but I couldn't find name for other url parameters in the documentation. For ex., what is the param name to say the req. will have a body encoded inapplication/json?Why should this be worked on?
I feel like building a hoppscotch request directly from a URL is a solid feature. For ex. in some API documentation, a link "Try it on Hoppscotch" could take you to hoppscotch with the request already ready. I would personally use it on https://chunk.run to give an easy way for users to try out their endpoint.
@liyasthomas commented on GitHub (Aug 11, 2022):
Building requests from URL parameters were deprecated. Instead, now you can create shortcodes for any request setup and share them with your team or friends.
Here's the announcement post: https://twitter.com/liyasthomas/status/1462732159274217475
Here's a demo of shortcodes: https://twitter.com/liyasthomas/status/1462732175757828097
@tzvc commented on GitHub (Aug 11, 2022):
Thanks for the prompt reply @liyasthomas
Shortcodes look great, but can they be built programmatically (for ex. to build a hopp.sh link with the user's info prefilled)?
@mst commented on GitHub (Aug 5, 2023):
I'd be interested in this too. While the short link is a nice feature for sharing static requests, I'd love be able to build pre-filled requests without any additional code, just by applying a template.
Was there a specific concern why this got feature removed?
@mst commented on GitHub (Aug 6, 2023):
It looks like this is still possible, even being maintained.
https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-common/src/helpers/RESTExtURLParams.ts.
I verified and it works like a charm.
E.g.
https://hoppscotch.io/?url=https://httpbin.org&path=anything&headers=[{"key":"x","value":"y"}]&contentType=application/json&rawParams={"key":"1","value":{"x":"2"}}