rest-cli

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

README

rest-cli

Command line REST API client which signs requests using AWS Signature Version 4 signing process for use with Amazon API Gateway.

Go Report Card Documentation

Usage

Usage: rest-cli <url>

A basic REST cli.

Arguments:
  <url>

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL