Search K
Appearance
Appearance
Restish 是一个用于与 REST-ish HTTP API 交互的 CLI,内置了一些不错的功能,例如在 API 上上线时始终拥有最新的 API 资源、字段和操作,而无需安装或更新任何内容。
安装:scoop install restish
# Perform an HTTP GET request
$ restish api.rest.sh/types
# Above is equivalent to:
$ restish GET https://api.rest.sh/types
# Pass a query param (either way)
$ restish api.rest.sh/?active=true
$ restish -q active=true api.rest.sh
# Pass a header
$ restish -H Accept:application/json api.rest.sh
# Pass in a body via a file
$ restish POST api.rest.sh <input.json
# Pass in body via CLI Shorthand
$ restish POST api.rest.sh name: Kari, tags[]: admin