4 ms·
Resty - a bash REST client
- ralph 17y agoIts error handling is a little odd, and it doesn't detect unexpected commands. $ resty 42; echo $? resty: curl returned error 42 0 $ (curl was never called.)
- skorgu 17y agoI've built a few toy apps that use json as intermediate formats and I've found JsonPath to be pretty effective at building ad-hoc queries. I wrapped it in a thin layer of python for command line use if anyone is interested. Syntax and the real meat: http://goessner.net/articles/JsonPath/ http://goessner.net/articles/JsonPath/ My rough-and-ready wrapper: http://github.com/skorgu/pyjsonpath/tree/master http://github.com/skorgu/pyjsonpath/tree/master