I would like to hear if any of you are using different app for API testing than Postman.

I’m not telling that Postman is bad, but maybe there’s all that I should check out. Recently I tried RapidApi and even tho the app is kinda cool I missed few options and went back to Postman for now.

  • Stopher@reddthat.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    I am a fan of Insomnia. As far as I can tell it has most of the features I used in postman without all the paid upgrade nags

    • MaungaHikoi@lemmy.nzM
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      The one thing I find difficult in Insomnia is making the auth common across a group of requests. I end up duplicating existing requests which doesn’t help if I need to update the process at all. Is there a way to use common auth routines yet?

    • crusa187@vlemmy.net
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Seconding Insomnia. Sleeker interface imo, only thing it’s lacking in feature parity afaik is the cookie sniffer, but you can grab what you need in postman or js console and then plug it into insomnia np.

      Also, cURL :]

  • alchemist_dev@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    2 years ago

    xh and tiny shell scripts.

    Example: sign-up-forbidden-username.req

    #!/bin/bash
    xh POST http://0.0.0.0:2884/sign-up usename=admin password=pw
    

    to run ./sign-up-forbidden-username.req

    This returns 403 and “Username is unavailable”

    https://github.com/ducaale/xh

    xh is a rust implementation of httpie. They’re going for full parity, and works really well for what I need it for so far You can also read input from a file. Which IMO makes GUI API testing seem silly.

  • MariusGundersen@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    I find postman to be too complex, too much config all over the place. It’s also difficult to share with others, it would be much better if it could store the settings in a file that could then be checked into git. That way everyone on the project would have the requests and could add and modify them as the server changes. Does any client like this exist?

    • prwnr@programming.devOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      I tried to use the HTTP Client built into Jetbrains IDE, but I just can’t get hang of it

  • Wats0ns@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Insomnia used to be good, but it’s WebKit, so really heavy to run, it crashed my PC several times

  • Earl Turlet@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    I use Hurl. Everything is just a text file:

    POST https://example.org/api/tests
    {
        "id": "4568",
        "evaluate": true
    }
    
    HTTP 200
    [Asserts]
    header "X-Frame-Options" == "SAMEORIGIN"
    jsonpath "$.status" == "RUNNING"    # Check the status code
    jsonpath "$.tests" count == 25      # Check the number of items
    jsonpath "$.id" matches /\d{4}/     # Check the format of the id
    
      • Earl Turlet@lemmy.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        It’s very similar to what JetBrains has and you can easily translate between the two (assuming you aren’t using assertions or any Hurl-specific features), but not exactly the same syntax.

        I tend to go with Hurl because it’s self contained and you can do things like throw it in your CI builds.

    • DanHulton@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Came here to write this, so you get my upvote instead.

      I don’t actually use Hurl, I use Jest (since I’m usually writing in TS) so that I can prep state before and confirm it afterwards and fully ensure that the request did what it was supposed to do, but if you’re already just using Postman, you’re likely not testing your state, and Hurl is a SIGNIFICANT improvement.

      Edit text files in any editor. Run it from the command line. Include it in your CICD with ease. It’s an incredible tool and it deseres to be far, far more popular than it is.

  • xenonyx@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    As a lot of other comments have already suggested, HTTP Toolkit is a good alternative and I used it quite a bit prior to discovering Postman…

    • prwnr@programming.devOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      real madman. I remember using JMeter few years ago and it was a nightmare. Did it improve over the last 5 years?

      • captain_samuel_brady@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        It seems about the same. The only real improvement that I’ve noticed, and maybe I just had it set up wrong, is that it can now handle high resolutions. The first time I used it the text was impossible to read. It has a lot of really cool features, but it’s not the friendliest software.

  • CodeBlooded@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    I stopped using postman in favor of just writing Python scripts to test what I was testing. 🤷‍♂️

    (I’m getting tired of learning new tools when I only end up needing some surface level functionality that I can quickly write myself. Maybe that’s just me.)

  • Gushys@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Insomnia is great and has an easy, simple interface. But I feel like creating complex collections with different environments is a lot simpler with postman