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 ( @Stopher@reddthat.com ) English41•1 year 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
- WHATaDEMAGE ( @WHATaDEMAGE@programming.dev ) English7•1 year ago
Insomnia is really good, never looked back at postman since i use Insomnia!
- crusa187 ( @crusa187@vlemmy.net ) English6•1 year 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 :]
never heard about it. gonna give it a try for sure. thanks for the suggestion!
- MaungaHikoi ( @MaungaHikoi@lemmy.nz ) English3•1 year 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?
- astromd ( @astromd@beehaw.org ) English1•1 year ago
This is what I use as well.
- astral_avocado ( @astral_avocado@programming.dev ) English15•1 year ago
Yeah it’s called curl lol
- CodeBlooded ( @CodeBlooded@programming.dev ) English2•1 year ago
This is the way.
- T (they/she) ( @Templa@beehaw.org ) English2•1 year ago
Asking without sarcasm: Do you write all your API automated tests using bash scripts?
- Caio Ramos ( @caiohsramos@lemmy.eco.br ) English12•1 year ago
Insomnia is pretty cool and open-source
- snowe ( @snowe@programming.dev ) English11•1 year ago
I completely stopped using all those clients. We now just store the requests alongside the code in an http file and use the built in IntelliJ HTTP Client to make the call. No need for a separate program, integrates with your code, you can save responses to make sure they don’t change, it’s all stored in git. There’s a ton of benefits and not many downsides.
- JackbyDev ( @JackbyDev@programming.dev ) English3•1 year ago
What is an HTTP file?
- jeff 👨💻 ( @jeff@programming.dev ) English3•1 year ago
Once I learned about http files I never went back. It’s so easy to share and use, I primarily use JetBrains but there are extensions for VSCode that do the same thing that I have used as well.
any resources to get the hang of the IntelliJ Client? cause when I tried it I kind of hit a wall not knowing where to start
- snowe ( @snowe@programming.dev ) English1•1 year ago
just create a new file of type HTTP Request, click on the
*Examples
dropdown in the top right, choose the type of thing you want to do, copy one of the examples, and then paste it into the.http
file you created. Then hit the play button! dead simple!anywhere on the project? hmm, that sounds pretty neat.
sorry for bugging you, but do you know if there is some way to import postman collections into this kind of a file? cause I have like 100 files in postman atm
edit: nvm, just tried it out and I can get from postman a HTTP “code” and simply paste it into .request fiel.
- snowe ( @snowe@programming.dev ) English2•1 year ago
no worries. I’m just slow to respond. Got lots going on. Seems like you figured it out though? Do you want some more guidance?
- astromd ( @astromd@beehaw.org ) English1•1 year ago
Learn something new every day! I’ll have to give this a try.
- CosmicPanda ( @CosmicPanda@programming.dev ) English10•1 year 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.
- Sheldan ( @Sheldan@programming.dev ) English1•1 year ago
I do have some bugs with Insomnia, for example with the oauth configuration failing. (I think it has something to do with some variable there failing) You can workaround that by just removing oauth, and configuring again, but its annowing.
I still like insomnia overall tho.
- emrikol ( @emrikol@lemmy.sdf.org ) English9•1 year ago
I like Insomnia myself
- thepiguy ( @thepiguy@lemmy.ml ) English9•1 year ago
Insomnia, or if you really love the command line and dont need to document or save your API requests, curl (don’t recommend this for anything beyond simple testing).
- Earl Turlet ( @EarlTurlet@lemmy.zip ) English9•1 year 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
- DanHulton ( @DanHulton@programming.dev ) English1•1 year 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.
- snowe ( @snowe@programming.dev ) English1•1 year ago
is it based on the http file standard? https://www.jetbrains.com/help/idea/exploring-http-syntax.html
it seems like even jetbrains has a cli you can use https://www.jetbrains.com/help/idea/http-client-cli.html#environment-variables
- Earl Turlet ( @EarlTurlet@lemmy.zip ) English3•1 year 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.
- snowe ( @snowe@programming.dev ) English1•1 year ago
that’s really neat… I’ve wanted to use it in CI but hadn’t found a way. I might look into this.
- Ray Gay ( @ray_gay@programming.dev ) English8•1 year ago
Hoppscotch is pretty cool
- Delta ( @deltamaniac@programming.dev ) English7•1 year ago
Insomnia user here too, I’ve found it to be simple,clean and to my taste.
- Gushys ( @Gushys@programming.dev ) English7•1 year 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
- Kogasa ( @kogasa@programming.dev ) English7•1 year ago
I’m saying that Postman is bad. maybe not in terms of functionality, but damn if it doesn’t run like a slug on my work computer, which is just fine handling a dozen Visual Studio and Rider instances. It seems like it works perfectly for about 5 minutes and then goes to crap.
So yeah, I’d be interested in an alternative too. I only really use it for basic functionality (creating, sharing, and running collections of requests with configurable parameters).
- Buckshot ( @Buckshot@programming.dev ) English2•1 year ago
Same for me, I’ll notice my computer is a bit loud, realise I forgot to close postman and it’s just sitting there, doing nothing, minimised, and my 12 core CPU is sat at 20%.
I close postman, within seconds the fans spin down.
I’ve tried a few alternatives but the rest of the team use postman and we’ve got shared collections and pretty extensive pre-request scripts and nothing else I’ve tried really fits the bill.
- Kogasa ( @kogasa@programming.dev ) English2•1 year ago
There is always the web version of postman. It can make localhost calls if you install their desktop agent. Might have better memory management somehow? I dunno.
- RonSijm ( @RonSijm@programming.dev ) English7•1 year ago
I usually generate an API client in C#, and just use that. For example, and entire integration CRUD test for a user would just be something like:
var user = TestClient.CreateUser(1234, "Bob"); user.Id.ShouldBe(1234); user.Name.ShouldBe("Bob"); var userThroughGet = TestClient.GetUser(1234); userThroughGet.ShouldNotBeNull(); TestClient.EditUser(1234, "John"); userThroughGet = TestClient.GetUser(1234); userThroughGet.Name.ShouldBe("John"); TestClient.DeleteUser(1234); userThroughGet = TestClient.GetUser(1234); userThroughGet.ShouldBeNull();
Trying to set up those kinda scenarios quickly with Postman was getting pretty tedious
- Grappling7155 ( @Grappling7155@lemmy.ca ) English6•1 year ago
I’m using the vscode extension called Thunderclient
- kambusha ( @kambusha@feddit.ch ) English2•1 year 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.
- garam ( @garam@lemmy.my.id ) English1•1 year ago
This. Is the best GUI, via vs code extension
- caesura ( @caesura@lemmy.ninja ) English5•1 year 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.