DevToys-app / DevToys

A Swiss Army knife for developers.
https://devtoys.app/
MIT License
26.87k stars 1.44k forks source link

HTTP Requests | API Building #353

Open dakyskye opened 2 years ago

dakyskye commented 2 years ago

What's the Problem?

No response

Solution/Idea

It'd be so cool if DevToys had a section called "Requests" where you can make all kinds of HTTP requests (GET, POST, etc.) and it'd nicely display results. It'd make API Building process so nice and sweet (totally in love with DevToy's stunning design!). Maybe even support making and using collections like in Postman so you can share them but even without collections, supporting making HTTP requests would make me have DevToys opened all the time along with my editor while writing code for back-end.

Alternatives

Postman, Postwoman, Insomnia, etc. these are nice API builders but DevToys design is astonishing and API building using DevToys would feel much nicer and comfier I believe.

Priorities

Capability Priority
Make HTTP request Must
Setting query parameters, headers, body content for a request Must
Viewing response's status, body and headers Must
Making a collection, exporting it and importing one Could

DevToys Version

Version 1.0.2.0 | X64 | RELEASE | b972462 | b972462

Comments

No response

expikr commented 2 years ago

Indeed the functionality would fill a unique void of manually synthesizing them instead of having to set them up programmatically, and suits perfectly the idea of a trusty quick-use toolbox that DevToys aims to be, letting programmers check/experiment stuff without the overhead of setting things up.

However, one hurdle resides in the fact that it conflicts with the objective of trying to avoid requiring eyebrow-raising permissions out of the box such as internet capability.

Thus, I think this needs to either be added after the "optional plugin" framework has been completed (which is slated for quite the long term), or perhaps be moved to a separate-but-same-family app "WebToys" or something along those lines.

I propose that this be added to the v2.0 milestone.

veler commented 2 years ago

Hello, Thanks for this feedback. I agree with @xeonmc . DevToys aims at staying completely offline. Having features that require an internet connection should stay optional (not even shipped by default). At this moment, we can't make third-part extensions in DevToys. We are thinking about it for a v2.0.

BenConstable9 commented 2 years ago

Not sure if allowed, but perhaps consider Nightingale Rest Client instead? It is built by a Microsoft developer and works really well.

https://www.microsoft.com/en-us/p/nightingale-rest-api-client/9n2t6f9f5zdn#activetab=pivot:overviewtab

dakyskye commented 2 years ago

@xeonmc @veler understood ✌️

@BenConstable9 that app looks nice, that's for sure, but I don't feel like swapping Postman with it. OTOH, DevToy's design is marvelous enough that I'd use it if it had features I need from Postman 😅

jwfxpr commented 2 years ago

@xeonmc, @veler, the volume of requests that involve the internet capabilities makes that WebToys suggestion worth proper discussion. Perhaps as a literal discussion, where these issues can be referenced and centralised for later consideration, when the DevToys release surge has abated?

expikr commented 2 years ago

@xeonmc, @veler, the volume of requests that involve the internet capabilities makes that WebToys suggestion worth proper discussion. Perhaps as a literal discussion, where these issues can be referenced and centralised for later consideration, when the DevToys release surge has abated?

I'll open a discussion, the WebToys idea actually stems from something that I've been ruminating for a while but thought didn't warrant opening an issue about it. I can put those idea as the discussion topic opener.

veler commented 1 year ago

Note to myself: this issue depends on #146