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
andPUT
- API v4: demonstrates a middleware that wraps all responses and always returns HTTP code 200
- API v5: demonstrates a
POST
with JSON data
bundle install
rackup
Try http://localhost:9292/api/v1/system/ping.
The application is setup with NewRelic w/ Developer Mode. Navigate to http://localhost:9292/newrelic after making some API calls.