Skip to content
A demo of Grape mounted behind a Goliath web server.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
app
config
spec
.gitignore
.rspec
.rubocop.yml
.rubocop_todo.yml
.travis.yml
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
app.rb

README.md

Grape API on Goliath

Build Status Dependency Status

A Grape API mounted on Goliath, a non-blocking Ruby web server framework.

  • ping: a hello world example that returns a JSON document

Heroku

Grape-on-goliath is deployed on Heroku at grape-on-goliath.herokuapp.com.

Run

$ bundle install
$ bundle exec ruby app.rb -sv
[92117:INFO] 2013-10-18 12:54:33 :: Starting server on 0.0.0.0:9000 in test mode. Watch out for stones.

Hello World

Navigate to http://0.0.0.0:9000/api/ping with a browser or use curl.

$ curl http://0.0.0.0:9000/api/ping

{"ping":"pong"}

List Routes

rake routes
You can’t perform that action at this time.