modern-unix icon indicating copy to clipboard operation
modern-unix copied to clipboard

Add restish

Open waldyrious opened this issue 2 years ago • 4 comments

/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.

waldyrious avatar Apr 16 '22 22:04 waldyrious

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 avatar Apr 17 '22 10:04 slavaGanzin

@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!

danielgtaylor avatar Apr 18 '22 17:04 danielgtaylor

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

slavaGanzin avatar Apr 19 '22 13:04 slavaGanzin

good stuff, please PR to my maintained fork here: https://github.com/johnalanwoods/maintained-modern-unix

johnalanwoods avatar Jan 23 '24 21:01 johnalanwoods