grape

https://github.com/intridea/grape

Ruby

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

Grape::DSL::InsideRoute#declared

A filtering method that will return a hash
consisting only of keys that have been declared by a
`params` statement against the current/target endpoint or parent
namespaces.

options. `:include_parent_namespaces` defaults to true, hence must be set to false if
you want only to return params declared against the current/target endpoint.

Source | Google | Stack overflow

Edit

git clone [email protected]:intridea/grape.git

cd grape

open lib/grape/dsl/inside_route.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Grape--DSL--InsideRoute-declared-for-pr


# Commit to git

git add lib/grape/dsl/inside_route.rbgit commit -m "better docs for Grape::DSL::InsideRoute#declared"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Grape--DSL--InsideRoute-declared-for-pr

hub pull-request


# Celebrate!