Skip to content

Command line REST API client which signs requests using AWS sigv4.

License

Notifications You must be signed in to change notification settings

wolfeidau/rest-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Command line REST API client which signs requests using AWS sigv4.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published