from Hacker News

Test, Save, and Execute HTTP Requests with Hurl (Or Restclient.el)

by jicea on 4/17/25, 5:07 PM with 2 comments

  • by gavinray on 4/17/25, 5:43 PM

    So, I've used the VS Code and IntelliJ extensions that support ".http" files for making REST requests forever.

    They're incredibly useful for embedding executable API documentation in your projects.

    What I've always wanted is the ability to embed assertions on the response.

    Something like:

        POST http://api.mysite.com/todo
        Content-Type: application/json
    
        { "text": "Do the dishes" }
    
        ASSERT_RESPONSE_MATCHES
    
        { "id": 1, "text": "Do the dishes" }
    
    Currently I do this with manual scripting