mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #398] Custom request method #148
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#148
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 @JanoschDeurer on GitHub (Dec 4, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/398
Originally assigned to: @JanoschDeurer, @liyasthomas on GitHub.
Is your feature request related to a problem? Please describe.
Some APIs use custom request methods. For example the API of vault uses
LISTdo deliver secrets:https://www.vaultproject.io/api/secret/kv/kv-v2.html#list-secrets
Describe the solution you'd like
It would be great to have a custom option that opens a text field where one can put in strings that describe the method.
Another solution is to just replace the dropdown with a text field.
Describe alternatives you've considered
I think for such APIs the only alternative is to use a different tool, but I really like postwoman :)
@liyasthomas commented on GitHub (Dec 4, 2019):
Will try to implement them.
@liyasthomas commented on GitHub (Dec 4, 2019):
methodlist have been adapted from https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods and sinceLISTis not an officially safe method, we can't list that in our default set of methods. But we've implemented an<input>box instead of<select>options, this allows user to type in any custommethodthey want. These custom methods could be used in endpoints that support those methods.@liyasthomas commented on GitHub (Dec 4, 2019):
@JanoschDeurer can you do a quick verification of custom method feature?
Check out https://deploy-preview-400--postwoman.netlify.com and try out few custom methods you're familiar of.
Don't forget to use the endpoints that do support those methods. The default one doesn't seems to have support for custom methods.
@JanoschDeurer commented on GitHub (Dec 5, 2019):
Wow, that was fast 🤩, thank you so much. I tested it with a few of the custom methods that vault uses and it works.
@liyasthomas commented on GitHub (Dec 5, 2019):
Shoot suggestions and along with PRs 😌👍