A Grape API mounted on Rails.
- ping: a hello world
GET
API - post: post JSON data
- raise: raise an error, Rails handling exceptions
- protected: API protected with rudimentary Basic Authentication
- headers: demonstrates header handling
An instance of this app is running on grape-on-rails.herokuapp.com.
bundle install
rails s
Try http://localhost:3000/api/ping or http://localhost:3000/api/protected/ping with username and password.