grape
grape copied to clipboard
An opinionated framework for creating REST-like APIs in Ruby.
See https://github.com/ruby-grape/grape-swagger/pull/778#issuecomment-590410310
We need a way to say: only the parameters declared are allowed. For a new API the whitelist of `params` could really be super useful for typos and wondering why...
I thought this was supposed to be fixed with #1665, but I am still having issues with it. I have a few classes inheriting from Grape::API and I want to...
Hi, found an interesting case when `rescue_from :all` should override outer `rescue_from :error_class` ```ruby class PublicApi < Grape::API rescue_from ActiveRecord::RecordNotFound do binding.pry error_response(status: 403) end mount AuthController end class AuthController...
``` params do optional :foos, :type => Array do required :bar, :type => String end end ``` and then POSTing something like this: ``` { "foos": [{}] } ``` Does...
This is a failing test that demonstrate a possible bug. This is a failing test in response to this issue #1592. I have tested both from code at version `0.16.2`...
Perhaps it is related to #1770. So the README says that an example below will be normalized: ``` curl -H "secret_PassWord: swordfish" ... ``` But actually - it won't. If...
Hello, I'm trying to override a nested attribute's name that gets show in the validation message, but it doesn't seem possible for nested params I want to override `registration[total_capacity]` attribute...
Hi, I work on the Elastic APM Ruby agent. We've recently [added support for instrumenting Grape apps](https://github.com/elastic/apm-agent-ruby/pull/562) and it will be released in our next minor version. Right now, we...