Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Restish: CLI for interacting with REST-ish HTTP APIs with some nice features (rest.sh)
84 points by thunderbong on Sept 22, 2024 | hide | past | favorite | 8 comments


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]


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


The site seems down (just blank white page).


      <div id="app"></div>
As expected :-/

Anyway, based on the page source it's just a rendered version of this https://github.com/danielgtaylor/restish/tree/main/docs


Can't curl do this?



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


cool to see the CLI community building stuff




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: