3 ms·
There are some extensions for VSCode that let you define your requests in a text file and has ways to run the file and show the data. Here's one I just found:
by pests 3y ago
There are some extensions for VSCode that let you define your requests in a text file and has ways to run the file and show the data.
Here's one I just found:
https://marketplace.visualstudio.com/items?itemName=humao.rest-client https://marketplace.visualstudio.com/items?itemName=humao.re...
Syntax looks like:
GET https://example.com/comments/1 HTTP/1.1
###
GET https://example.com/topics/1 HTTP/1.1
###
POST https://example.com/comments HTTP/1.1
content-type: application/json
{
"name": "sample",
"time": "Wed, 21 Oct 2015 18:27:50 GMT"
}
- S04dKHzrKT 3y agoJetbrains IDEs also have builtin support for HTTP files. https://blog.jetbrains.com/idea/2023/10/intellij-idea-2023-3-eap-3/ https://blog.jetbrains.com/idea/2023/10/intellij-idea-2023-3... https://www.jetbrains.com/help/idea/exploring-http-syntax.html https://www.jetbrains.com/help/idea/exploring-http-syntax.ht...
- e-master 3y agoI use it too - it’s excellent, I’d think most developers don’t need more than this.
- progre 3y agoYep, me to. Since it's just textfiles I can have them checked into git and share them. Credentials stays in a separate environments file (not checked in). I'm pretty happy with this setup.
- skeeter2020 3y agoI use the VS Code REST extension a lot but it does lack some of the aspects that make Postman easier for teams and larger projects. It's super easy to define a "collection" as an .http page for smaller and one-off needs though.
- Octabrain 3y agoI use this one for tests on microservices endpoints. Very good at least for my use case. I recommend it.
- hanniabu 3y agoAnybody know of one for sublime?
- leosanchez 3y agoI use hurl[0] [0]https://hurl.dev/docs/tutorial/your-first-hurl-file.html https://hurl.dev/docs/tutorial/your-first-hurl-file.html
- dzhiurgis 3y agoIs it much better over bash file and curl?
- pests 3y agoIt supports curl inside as well as its custom syntax so this provides the same thing.
- botanical 3y agoThere's a great Emacs mode, and it looks like it works in the same way, putting it in a file: https://github.com/pashky/restclient.el https://github.com/pashky/restclient.el