grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Grape::DSL::Validations::ClassMethods#params
Opens a root-level ParamsScope, defining parameter coercions and validations for the endpoint.
Edit
git clone [email protected]:intridea/grape.git
cd grape
open lib/grape/dsl/validations.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Grape--DSL--Validations--ClassMethods-params-for-pr
# Commit to gitgit add lib/grape/dsl/validations.rbgit commit -m "better docs for Grape::DSL::Validations::ClassMethods#params"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Grape--DSL--Validations--ClassMethods-params-for-pr
hub pull-request
# Celebrate!