Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.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"
    }



I use it too - it’s excellent, I’d think most developers don’t need more than this.


Yep, 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.


There'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


I 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.


I use this one for tests on microservices endpoints. Very good at least for my use case. I recommend it.


Is it much better over bash file and curl?


It supports curl inside as well as its custom syntax so this provides the same thing.


Anybody know of one for sublime?





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: