intridea/grape — pull request #204 by tim-vandecasteele (2012-07-18 08:50:25+00:00)
Title: Add possibility for namespace parameters.

Specific method options (parameters and description) are now merged with the namespace parameters. So you can do something like below, and the serial parameter will be described for all methods in the namespace:

``` ruby
desc 'description', :params => { "serial" => { :desc => "Serial of requested object." } }
segment '/:serial' do
desc "Get details on specific object"
get do
present object, with: API::Entities::Object
end

desc "Reserve an object"
post '/reserve' do
present object.reserve, with: API::Entities::ObjectReserved
end
end
```