add options and trace verbs

This commit is contained in:
Peter McCready
2019-10-04 14:51:41 +01:00
parent 0246ff164f
commit 5c9154864e
3 changed files with 8 additions and 8 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)