Skip to content
/ rsty Public

rsty is a simple rest client I use to test our API from the command line.

Notifications You must be signed in to change notification settings

lgirndt/rsty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsty

rsty is a simple rest client I use to test our API from the command line.

Overview

Therefore it is intended to provide a simplified access to a Rest API on a distinct host. You simply configure the base parameter to access this API in the config file rsty.json

	{
	  "base_url":"http://localhost:8080/your/api/v1.0",
	  "user":"user@name.com",
	  "password":"user",
	  "base_params" :  {"api_key" : "1alsdifnsdflkj"}
	}	

It is expected that the config file exists in the working directory. Then you can use rsty simply by

rsty GET /campaigns	

Parameters are simply provided as key=value arguments. rsty handles POST parameters and query parameters transparently.

rsty POST /products orderId=345 customer=me

Installation

rsty requires ruby 1.9.3

Then install locally with

cd rsty
bundle install
rake install	

About

rsty is a simple rest client I use to test our API from the command line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published