Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1023 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 1023 Bytes

Wreck REST Request Tool

A simple command line tool for interacting with REST APIs

Building and Installing

In order to build this tool you should have it checked out locally into your GOPATH. Once it is checked out you should be able to compile and install wreck by using:

$ make install

To install the configuration files you will need to copy them to the locations where wreck will look for them.

$ cp global.yaml /etc/wreck.yaml
$ cp user.yaml ~/.wreck.yaml

Running Tests

$ make test

Usage

Wreck can make both GET requests and POST requests to an API. You can also pass username and password credentials on the command line or in the user-specific configuration file located at ~/.wreck.yaml.

Example Usage

Getting Help

$ wreck help

Making a GET Request

$ wreck get https://httpbin.org/get

Making a POST Request with Credentials

$ wreck post --username foo --password bar https://httpbin.org/post