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.

  • @[email protected]
    link
    fedilink
    English
    3
    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.

    • @[email protected]
      link
      fedilink
      English
      22 years ago

      Surprised how little love this option is getting in the comments. Not only will swagger be generated for you from your openapi spec, it has a clean fast UI and shared auth.

    • @[email protected]
      link
      fedilink
      English
      12 years ago

      Same. I like this so I don’t need to open a second app. Only used PostMan and ThunderClient, so can’t comment on others.

    • SALT
      link
      fedilink
      English
      12 years ago

      This. Is the best GUI, via vs code extension

  • Delta
    link
    fedilink
    English
    82 years ago

    Insomnia user here too, I’ve found it to be simple,clean and to my taste.

  • Joshua Cohen
    link
    fedilink
    English
    22 years ago

    I just started using Insomnia and I really like it, highly recommended!

  • @[email protected]
    link
    fedilink
    English
    32 years ago

    If you’re on a Mac, I recommend the RapidAPI native HTTP client. It used to be called Paw and it recently got acquired by the RapidAPI team but it hasn’t changed much and still works pretty well IMO. I’ve been using it for years to test out APIs and i like it better than Postman.

  • @[email protected]
    link
    fedilink
    English
    22 years ago

    Another vote for Insomnia here. I used to use Insomnia primarily until a lot of my work switched over to gRPC and I’ve found that Postman works a lot better for that. I still prefer Insomnia for the simple UX and speed, just wish it had better gRPC support.

  • @[email protected]
    link
    fedilink
    English
    12 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.)

  • Earl Turlet
    link
    fedilink
    English
    42 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
    
  • @[email protected]
    link
    fedilink
    English
    8
    edit-2
    2 years ago

    I recommend Visual Studio Code and one of the following two extensions:


    Either one isn’t really the full picture - you’ll ned to combine it with other extensions - such as a good JSON language extension (which will give you syntax highlighting, error checking, code folding/etc.

    The most important extension is CoPilot. That’s the killer feature which makes Visual Studio Code vastly better than Postman.


    Thunder is very similar to Postman. Not much to say other than it works well, it’s free, millions of people use it.

    It’s not really my cup of tea, but I do think it’s better than Postman because you can use your own version control servers to collaborate with colleagues, which is generally better (and cheaper) than Postman’s collaboration service in my opinion (you get diffs, code review, pull requests, history, etc etc for all your most important API tests).


    Personally I prefer REST Client (also free, and has even more users than Thunder).

    REST Client is really simple. It adds a new “HTTP” text file type. You simply type a HTTP request into the file and hit a hotkey (or click a button) to execute the request. And it shows you the response. Easy.

    HTTP requests and responses are just plain text, and you can simply save those as files in your project. REST Client also has basic support for variables, API credentials, etc. Not quite as user friendly as Postman or Thunder Client, but it makes up for that by being straightforward and flexible.


    CoPilot Chat, works with both, but having everything in plain text gives it more control over REST Client than Thunder Clinet you can write (and edit) your requests with a series of simple plain english prompts. E.g. “JSON request with a blog post body” will give you:

    POST https://example.com/blog/posts
    Content-Type: application/json
    
    {
        "title": "My First Blog Post",
        "body": "This is the content of my first blog post. It's not very long, but it's a start!",
        "author": "John Doe",
        "tags": ["blogging", "first post"]
    }
    

    You might follow that up with “Add a UUID” or “Add a JWT auth header”.

    Copilot can answer questions too - e.g. “How do I unsubscribe a user with the Mailchimp API?” They use the “HTTP PATCH” request type - WTF.