Restish: CLI for interacting with REST-ish HTTP APIs with some nice features

84 pointsposted a year ago
by thunderbong

8 Comments

tym0

a year ago

The use of commas to separate key-value pairs here is perplexing to say the least, why have them at all? Does it means I now need to escape them if my value has a comma at the end?

From the docs:

  restish POST api.rest.sh \
    platform.name: HTTPie, \
    platform.about.mission: Make  APIs simple and intuitive, \
    platform.about.homepage: httpie.io, \
    platform.about.stars: 54000, \
    platform.apps: [Terminal, Desktop, Web, Mobile]

mxuribe

a year ago

I appreciate that they have the following page which helps answer the very first question i had upon reading the intro, namely how this compares to a couple of existing tools (like curl, etc.): https://rest.sh/#/comparison

Neywiny

a year ago

Can't curl do this?

factormeta

a year ago

Neywiny

a year ago

So it looks like pretty much yes. I think the only real advantage I saw was the auth stuff. I guess this'll be a good tool in the toolbelt for when that time comes

maverick98

a year ago

cool to see the CLI community building stuff