News for hackers. Stuff that matters.
Re:Rest Easy by jalk on Wednesday March 26, 2025 @02:45AM (#43479461)
Can anybody suggest a simple cli tool (besides curl ofc) for calling REST endpoints, since this article didn't provide that ;)
Re:Rest Easy by jicea on Wednesday March 26, 2025 @03:29AM (#43479700)
Hi, you may like Hurl [1] it's a cli based on curl to make REST call, add asserts on results, chains requests etc... I'm one of the maintainer

[1]: https://hurl.dev

Re:Rest Easy by psYchotic on Wednesday March 26, 2025 @03:28AM (#43479694)
Re:Rest Easy by clan on Wednesday March 26, 2025 @03:06AM (#43479571)
If you rephrase that to tools which deals with what the endpoints emits there is a boatload. Most emits JSON but XML can be found as well.

Personally I use jaq. Gojq is nice as well. Both. Inspired by the original ja. You can find many lists[1].

I would especially point out jid[2] which often comes in handy to explore apis.

Or if we stay at the http calling level and the command line: wget or fetch.

If you include scripting languages then most http libraries will do. With Python a simple approach would be "python -m json.tool".

[1] https://ilya-sher.org/2018/04/10/list-of-json-tools-for-comm...

[2] https://github.com/simeji/jid

Re:Rest Easy by MrBuddyCasino on Wednesday March 26, 2025 @02:56AM (#43479519)
Re:Rest Easy by epse on Wednesday March 26, 2025 @06:01AM (#43480496)
Posting is my personal favourite https://github.com/darrenburns/posting
Re:Rest Easy by agumonkey on Wednesday March 26, 2025 @08:19AM (#43481376)
not the fastest but brilliant tool
Re:Rest Easy by bschwindHN on Wednesday March 26, 2025 @06:40AM (#43480711)
I can't help you with REST, but I can show you how to make a SOAP request

https://imgur.com/3u75Ldf