talira

REST-like API framework for Ruby

open sourceMITfree

Grape is a REST-like API framework for Ruby that runs on Rack or alongside Ruby on Rails and Sinatra, with a simple DSL for building RESTful APIs. It has built-in support for common conventions, including multiple formats, subdomain or prefix restriction, content negotiation and versioning.

Problems it solves

  • build a REST API in Ruby without full Rails
  • add a versioned JSON API to a Rails app
  • define API endpoints with a Ruby DSL

Features

  • DSL for RESTful APIs
  • runs on Rack, mounts in Rails or Sinatra
  • multiple formats and content negotiation
  • API versioning

Alternatives

The same job

These do what Grape does.

  1. Snails Rails-like framework for API-only Ruby apps that compiles to one native binary
  2. Sinatra A DSL for quickly creating web applications in Ruby
  3. Hanami Ruby apps that grow with you

Compare Grape with the top 3