←back to thread

536 points helloguillecl | 2 comments | | HN request time: 0.445s | source
Show context
charlie0 ◴[] No.45651468[source]
I'm looking at alternatives that are guarantee to work locally and only found the following:

Posting.sh -> Postman imports are experimental which makes it a non-starter for people like myself with large Postman collections. TUI only also makes it harder to switch.

Insomnia -> Owned by another large tech company.

Yaak -> Made by the same guy who created AND SOLD Insomnia above. Not exactly comforting to switch over for. How long till this one also gets sold?

Any other great local tools out there? I would like to be done with Postman.

replies(7): >>45651503 #>>45651698 #>>45652653 #>>45653340 #>>45653454 #>>45653570 #>>45653582 #
1. eYrKEC2 ◴[] No.45651698[source]
I use a simple bash script:

    #!/bin/bash -x

    TOK="my-jwt-tok"

    case "$1" in
        get-foo)
            curl -H "header: bearer $TOK" "http://www.example.com/foo" | jq .
            ;;

        post-bar)
            curl \
              -H "header: bearer $TOK" "http://www.example.com/bar" \
              -H "content-type: application/json" \
              --data-raw '{"baz":"bap"}'

            ;;  
        *)
            ;;  

    esac
used like:

    ./example.bash get-foo

I know it doesn't have the functionality of postman, but this is how I build up interactions with a new API.
replies(1): >>45653299 #
2. liqilin1567 ◴[] No.45653299[source]
I would like to put the request body into a file and use it with `@file.json`.