https://github.com/wolfeidau/rest-cli
Command line REST API client which signs requests using AWS sigv4.
https://github.com/wolfeidau/rest-cli
aws cli go http rest
Last synced: 8 months ago
JSON representation
Command line REST API client which signs requests using AWS sigv4.
- Host: GitHub
- URL: https://github.com/wolfeidau/rest-cli
- Owner: wolfeidau
- License: apache-2.0
- Created: 2022-04-10T13:37:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-05T09:53:32.000Z (over 2 years ago)
- Last Synced: 2025-07-29T07:51:26.685Z (8 months ago)
- Topics: aws, cli, go, http, rest
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rest-cli
Command line REST API client which signs requests using AWS [Signature Version 4 signing process](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) for use with [Amazon API Gateway](https://aws.amazon.com/api-gateway/).
[](https://goreportcard.com/report/github.com/wolfeidau/rest-cli)
[](https://godoc.org/github.com/wolfeidau/rest-cli)
# Usage
```
Usage: rest-cli
A basic REST cli.
Arguments:
Flags:
-h, --help Show context-sensitive help.
--version
--verbose
--dump
-X, --method="GET"
--service="execute-api"
-d, --data=STRING
-H, --headers=KEY=VALUE;...
```
# Examples
Send a `GET` request to an endpoint URL and pipe the output.
```
rest-cli https://example.com/customers
```
Send a `POST` request to an endpoint URL with a JSON body.
```
rest-cli -X POST -H 'Content-Type=application/json' -d '{"name":"AWS", "labels":[]}' https://example.com/customers
```
# License
This application is released under Apache 2.0 license and is copyright [Mark Wolfe](https://www.wolfe.id.au).