4 ms·
Learn and use curl, then you won’t have any issues like this. You can make some scripts in Python or something, too. I say this because the last three tools I
by ok_dad 3y ago
Learn and use curl, then you won’t have any issues like this. You can make some scripts in Python or something, too.
I say this because the last three tools I used for this all got shitty (postman, insomnia, and thunder client).
- mplewis 3y agoCurl is not sufficient for rapid experimentation against an API.
- worksonmine 3y agoDepends how comfortable you are with curl and your workflow. I'm much more productive using curl vs any GUI you give me. Still have OpenAPI specs in my projects but curl is much faster initially.
- isbvhodnvemrwvn 3y agoIt falls apart instantly when you need to pass data from one endpoint to another or add any sort of logic like filtering through data - so any time you have non-trivial workloads where you don't want to spend half your time fighting against jq or shell.
- ok_dad 3y agoYou don’t have to fight tools if you learn them, but I understand— as a fellow programmer— that you don’t always have time to learn them. However, it’s pretty easy to use pipes and tools like jq to do complex stuff.
- isbvhodnvemrwvn 3y agoWhile jq is powerful and I use it in scripts, it's one of the least intuitive languages I use, to the point I have to look up basically everything non-trivial.
- worksonmine 3y ago> pass data from one endpoint to another `curl ... > out.json` then `curl ... -d out.json`. Wrap it in a shell script for quick iterations. > filtering through data `curl ... | jq | grep`. I don't know of any tool that will find what I'm after faster than the shell. For bootstrapping and quick experiments curl is right there at my fingertips, no need to spin up an electron app, make a bunch of definitions and all that. When I want something more usable OpenAPI serves as stateful and interactive test environment and documentation at the same time. I do agree curl can get a little verbose but create an alias: `alias jc='curl -H Content-Type: application/json` and using it is as simple as `jc $URL` for GET or `jc -X POST -d '{ ... }' $URL` for the rest of the methods. I really recommend getting comfortable in the shell, it's amazing how productive it can be and becoming a bit of a lost art these days. All the tools are composable and working together it's so zen.
- isbvhodnvemrwvn 3y agoI would rather cycle thorough tools than deal with piss poor user experience of something like that.
- polotics 3y agoSeriously, python with the requests lib in a jupyter notebook is always a nicer user experience than any REST API GUI, most importantly once it's grown a bit.
- marsmero 3y agoThat sounds interesting. Can you post some example? How do you share 'collections'?
- rpdillon 3y agoOne nice thing about FOSS CLI tools is they're easy to script. While it's pretty tough to script general cases, I often find my workflows orbit around a handful of commands, and scripting often can improve the UX by a large margin. It does require tinkering a bit though.
- taesu 3y agoNope
- lowercased 3y agofor individual users, i've not quite got the appeal of postman. in larger teams, I did see groups of people collaboratively creating various urls/scripts/tests, and putting some docs with them, to help with the dev and testing (mostly qa/test folks). that was, imo, a relatively legitimate use for a full tool like postman.
- great_cormorant 3y agoI really like the built-in `.http` file clients in IntelliJ products. You can paste from CURL and copy to CURL, so interop with CLI commands is very easy. https://www.jetbrains.com/help/idea/exploring-http-syntax.html https://www.jetbrains.com/help/idea/exploring-http-syntax.ht...
- Eumenes 3y agoBut is there a VS Code extension for curl?!!? Does it work with ChatGPT?
- kyriakos 3y agoWhat's wrong with thunder client?
- ok_dad 3y agoWeird pricing BS they just started.
- kyriakos 3y agoWow, just visited the pricing page https://www.thunderclient.com/pricing https://www.thunderclient.com/pricing Hadn't noticed this change (I am not a heavy user) but it does look like its heading the postman way. I moved from Postman to Insomnia to Thunder Client. Time for yet another alternative.