lib/soaspec/virtual_server.rb in soaspec-0.3.3 vs lib/soaspec/virtual_server.rb in soaspec-0.3.6
- old
+ new
@@ -105,9 +105,14 @@
documentation 'Sends back params received'
get '/echoer' do
params.to_s
end
+ documentation 'Sends back body received for delete'
+ delete '/echoer' do
+ request.body
+ end
+
# Used for simple testing of posing
documentation 'Simply sends the response body back'
post '/echoer' do
request.body
end