Grape is a REST-like API framework for Ruby. It is designed to run on Rack, or alongside other frameworks such as Rails or Sinatra, to provide a simple DSL for defining APIs. It handles concerns like content negotiation, versioning, parameter validation, mounting/subdomain or prefixing, error handling, and supports multiple response formats. It aims to streamline API development without pulling in a full web MVC stack.
Features
- DSL for defining endpoints, routes, HTTP methods, with support for versioning, prefix/subdomain restrictions
- Parameter validation, coercion, error handling built-in
- Multiple response formats (e.g. JSON, XML) and content negotiation
- Mountable (can be embedded within or alongside other Rack applications or frameworks)
- Support for helpers, filters, error handlers etc for shared logic across endpoints
- Designed to be lightweight, minimal overhead, and easy to test and document APIs
Categories
FrameworksLicense
MIT LicenseFollow Grape
nel_h2
Simply solve complex auth. Easy for devs to set up. Easy for non-devs to use.
Custom auth drains 25% of dev time and risks 62% more breaches, stalling enterprise deals. Frontegg platform delivers a simple login box, seamless authentication (SSO, MFA, passwordless), robust multi-tenancy, and a customizable Admin Portal. Integrate fast with the React SDK, meet compliance needs, and focus on innovation.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Grape!