Sha256: 212c3ec984054b5ea25ee10d06f53b4d20c1d936099e52fb6d0a3cf2cdcc458d
Contents?: true
Size: 1.28 KB
Versions: 4
Compression:
Stored size: 1.28 KB
Contents
# frozen_string_literal: true # Entities require "mihari/web/entities/message" require "mihari/web/entities/autonomous_system" require "mihari/web/entities/command" require "mihari/web/entities/config" require "mihari/web/entities/dns" require "mihari/web/entities/geolocation" require "mihari/web/entities/ip_address" require "mihari/web/entities/reverse_dns" require "mihari/web/entities/source" require "mihari/web/entities/tag" require "mihari/web/entities/whois" require "mihari/web/entities/artifact" require "mihari/web/entities/alert" require "mihari/web/entities/rule" # Endpoints require "mihari/web/endpoints/alerts" require "mihari/web/endpoints/artifacts" require "mihari/web/endpoints/command" require "mihari/web/endpoints/configs" require "mihari/web/endpoints/ip_addresses" require "mihari/web/endpoints/rules" require "mihari/web/endpoints/sources" require "mihari/web/endpoints/tags" module Mihari class API < Grape::API prefix "api" format :json mount Endpoints::Alerts mount Endpoints::Artifacts mount Endpoints::Command mount Endpoints::Configs mount Endpoints::IPAddresses mount Endpoints::Rules mount Endpoints::Sources mount Endpoints::Tags add_swagger_documentation(api_version: "v1", info: { title: "Mihari API" }) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mihari-4.1.2 | lib/mihari/web/api.rb |
mihari-4.1.1 | lib/mihari/web/api.rb |
mihari-4.1.0 | lib/mihari/web/api.rb |
mihari-4.0.0 | lib/mihari/web/api.rb |