grape icon indicating copy to clipboard operation
grape copied to clipboard

An opinionated framework for creating REST-like APIs in Ruby.

Results 157 grape issues
Sort by recently updated
recently updated
newest added

```ruby # works present :aggregations, [] # raises an

bug?

Custom error formatter must have now 5 arguments instead of the old 4. These changes were introduced here on #1652 When migrating from 0.19 to 1.1.0 I had issues on...

bug?

I have current_user defined inside the before hook, and then we try to read it from `rescue_from` method, we get `nil`. ```ruby before do token = nil token = headers.fetch("Authorization",...

feature request
bug?

When mounting an API within a route_param, the attributes of the route param are not propagating downward in the route.params property. Attaching a failing test. #1620 This seems to touch...

bug?

I have a `post` endpoint where I'd like to conditionally return a custom Rack::Response, like so: ``` ruby post do if some_condition? hash_of_contextually_relevant_goodness = { foo: 'bar' } Rack::Response.new( [hash_of_contextually_relevant_goodness],...

feature request

I am in the process of upgrading an old Rails app. Just tried increasing Grape from version 0.17.0 to 0.19.2. I hit on issue with the rabl no longer being...

bug?

Hi, we're struggling to work through an issue where a Rails controller and a Grape API endpoint both run the same underlying ActiveRecord query - literally the same code, and...

### Steps to reproduce 1. Create a rails project. 2. Add `grape` as a dependency and install 3. Open `routes.rb` and add following: ``` # frozen_string_literal: true class DomainConstraint def...

bug?

Hello. I try to add `error` root for errors. ```ruby class API::Error < Grape::Entity root 'errors', 'error' expose :code expose :message end ``` ```root error!({ message: "Some error", code: 123,...

bug?

**Issue:** Your using grape, rails 4.2.x and rspec and you get an error about Array not responding to url_helpers **Fix:** ``` ruby if Rails.version >= '4.2' && Rails.version < '5'...