modern-unix
modern-unix copied to clipboard
Add restish
/cc @danielgtaylor for awareness (and any recommendations regarding the text or image)
Image adapted from the code sample at the blog post A CLI for REST APIs, using Prismjs's Okaidia color theme.
Would nicely play with elasticsearch: in docs they write stubs like: GET /_search and you supposed to translate it to curl 127.0.0.1:9200/_search
which is tedious, but with restish it would be easy.
Whoa, it works, even without config: restish :9200/_search
. Nice!
Recently switched from httpie to xh, found it in PR here :) But will try restish as an alternative, thanks Awesome work with openapi! But a bit not obvious from the docs
@danielgtaylor thanks for your work
p.s. Besides, are websockets on a roadmap?
@slavaGanzin no concrete plan for websockets or SSE at the moment. Would love to understand the use-cases more before adding features related to those!
I want to use my websocket endpoints as I'm doing this with my REST endpoints. That's it. Trigger, test, parse.
But I think it would be harder, there is no protocol for data format in websockets. Somebody use it as plain text protocol, somebody with json, and I, myself, with msgpack. Quite a lot to configure
good stuff, please PR to my maintained fork here: https://github.com/johnalanwoods/maintained-modern-unix