add options and trace

This commit is contained in:
Laura Watson
2019-10-04 14:52:47 +01:00
parent 0246ff164f
commit 57da84d055
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ module Rswag
describe(template, metadata, &block)
end
[ :get, :post, :patch, :put, :delete, :head ].each do |verb|
[ :get, :post, :patch, :put, :delete, :head, :options, :trace ].each do |verb|
define_method(verb) do |summary, &block|
api_metadata = { operation: { verb: verb, summary: summary } }
describe(verb, api_metadata, &block)