Files
metasploit-gs/documentation/api/v1/msf_api_doc.rb
T
2018-05-03 17:16:04 -05:00

21 lines
494 B
Ruby

require 'swagger/blocks'
module MsfApiDoc
include Swagger::Blocks
swagger_path '/api/v1/msf' do
# Swagger documentation for /api/v1/msf GET
operation :get do
key :description, 'Return the current version of the running Metasploit Framework.'
key :tags, [ 'msf' ]
response 200 do
key :description, 'Returns the Metasploit Framework version.'
schema do
property :metasploit_version, type: :string
end
end
end
end
end