ibraheemdev / modern-unix

A collection of modern/faster/saner alternatives to common unix commands.
30.44k stars 771 forks source link

Add restish #96

Open waldyrious opened 2 years ago

waldyrious commented 2 years ago

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

slavaGanzin commented 2 years ago

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?

danielgtaylor commented 2 years ago

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

slavaGanzin commented 2 years ago

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

johnalanwoods commented 6 months ago

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