heavysixer / grape-on-rack

A demo Grape API mounted on RACK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grape API on Rack

Build Status

A Grape API mounted on Rack.

  • API v1: demonstrates rescue_from that wraps all exceptions in an HTTP error code 500
  • API v2: demonstrates vendor-based versioning
  • API v3: demonstrates POST and PUT
  • API v4: demonstrates a middleware that wraps all responses and always returns HTTP code 200
  • API v5: demonstrates a POST with JSON data

Run

bundle install
rackup

Try http://localhost:9292/api/v1/system/ping.

New Relic

The application is setup with NewRelic w/ Developer Mode. Navigate to http://localhost:9292/newrelic after making some API calls.

About

A demo Grape API mounted on RACK.


Languages

Language:Ruby 97.1%Language:JavaScript 2.9%