mifo/sinatra-rabbit — pull request #12 by mifo (2012-11-27 15:57:35+00:00)
Title: Added support for operations that have same name but different HTTP meth...

This is just PoC for testing :-) I do believe this does not break anything.

This is what you can do with this patch:

collection :sample do
# GET /sample/123/volumes
operation :volumes do
end

# PUT /sample/123/volumes
operation :volumes, :http_method => :put do
end
end

This is what will be changed:

Sample::Collection::VolumesOperation => (is the first one)
Sample::Collection::VolumesPutOperation => (is the 'put' one)