Project

endo

0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Testing api endpoints tool
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8
~> 10.0

Runtime

 Project Readme

endo

This is a tool for testing json api endpoints.

Usage

Write endo file. ex. endo/sample.rb

base_url 'http://localhost:3000'
basic_auth 'user', 'pass'

get '/articles' do
  expect(header: 'Content-Type').to equal 'application/json; charset=utf-8'
end

post '/articles.json' do
  param 'article[title]', 'hello'
  param 'article[content]', 'Hello, world!'
end

get '/articles/:article_id' do
  param :article_id do
    from :post, '/articles.json', 'id'
  end

  expect(header: 'Content-Type').to equal 'application/json'
  expect(body: 'title' }).to equal 'hello'
end

Exec endo command.

ss_ 2016-05-02 16 12 58

Installation

Add this line to your application's Gemfile:

gem 'endo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install endo