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
bundle install
rails s
Try http://localhost:3000/api/ping or http://localhost:3000/api/protected/ping with username and password.