metasploit-framework/documentation/api/v1/db_export_api_doc.rb

41 lines
1.0 KiB
Ruby
Raw Normal View History

2018-05-02 16:40:56 +00:00
require 'swagger/blocks'
module DbExportApiDoc
include Swagger::Blocks
swagger_path '/api/v1/db-export' do
# Swagger documentation for /api/v1/db-export GET
2018-05-02 16:40:56 +00:00
operation :get do
key :description, 'Create a backup of the database as a file that can be re-imported to restore data.'
2018-05-02 16:40:56 +00:00
key :tags, [ 'db_export' ]
parameter :workspace
2018-05-02 16:40:56 +00:00
parameter do
key :in, :query
key :name, :path
key :required, true
key :description, 'The location to store the export file.'
end
parameter do
key :in, :query
key :name, :format
key :required, true
key :description, 'The file format to export as. Valid values are \'xml\' and \'pwdump\''
end
response 200 do
key :description, 'A JSON object containing the Base64 encoded backup file.'
schema do
2018-07-25 23:01:05 +00:00
property :data do
property :db_export_file do
key :type, :string
end
2018-05-02 16:40:56 +00:00
end
end
end
end
end
end