f8317d3ae2
- Don't document unsupported session POST - Hide unimplemented loot/id and session/id GET methods - Fix URL for msf doc - Add missing workspace parament to vuln-attempts - Remove unneccessary code for hosting the doc UI
21 lines
510 B
Ruby
21 lines
510 B
Ruby
require 'swagger/blocks'
|
|
|
|
module MsfApiDoc
|
|
include Swagger::Blocks
|
|
|
|
swagger_path '/api/v1/msf/version' do
|
|
# Swagger documentation for /api/v1/msf/version 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
|