Grape is a framework for creating REST-like APIs in Ruby. It provides a domain-specific language (DSL) for defining API endpoints with built-in parameter validation, versioning, and documentation generation. Unlike full web frameworks, Grape focuses specifically on API development and can run standalone or mount within Rails, Sinatra, or other Rack applications. The gem includes features for parameter coercion, content negotiation, and automatic error handling.
gem install grape Run this gem instantly in your browser without any installation:
Open in RunRuby.dev →All 74 versions available for installation