lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.1.17 vs lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.1.18

- old
+ new

@@ -283,9 +283,11 @@ define_method(rest_method) do |params = {}| unless params.is_a? Hash params = case rest_method when 'get', 'delete' { suburl: params.to_s } + when 'post', 'put', 'patch' + { payload: params.to_s } else params end end params[:name] ||= rest_method