Sha256: 5363721ba81afd00d560c796976e28093342340860e46d7d88a0827cedb8a9a6

Contents?: true

Size: 687 Bytes

Versions: 21

Compression:

Stored size: 687 Bytes

Contents

# frozen_string_literal: true

# Endpoints
require "mihari/web/endpoints/alerts"
require "mihari/web/endpoints/artifacts"
require "mihari/web/endpoints/configs"
require "mihari/web/endpoints/ip_addresses"
require "mihari/web/endpoints/rules"
require "mihari/web/endpoints/tags"

module Mihari
  module Web
    #
    # Grape API
    #
    class API < Grape::API
      prefix "api"
      format :json

      mount Endpoints::Alerts
      mount Endpoints::Artifacts
      mount Endpoints::Configs
      mount Endpoints::IPAddresses
      mount Endpoints::Rules
      mount Endpoints::Tags

      add_swagger_documentation(api_version: "v1", info: { title: "Mihari API" })
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
mihari-7.3.2 lib/mihari/web/api.rb
mihari-7.3.1 lib/mihari/web/api.rb
mihari-7.3.0 lib/mihari/web/api.rb
mihari-7.2.0 lib/mihari/web/api.rb
mihari-7.1.3 lib/mihari/web/api.rb
mihari-7.1.2 lib/mihari/web/api.rb
mihari-7.1.1 lib/mihari/web/api.rb
mihari-7.1.0 lib/mihari/web/api.rb
mihari-7.0.5 lib/mihari/web/api.rb
mihari-7.0.4 lib/mihari/web/api.rb
mihari-7.0.3 lib/mihari/web/api.rb
mihari-7.0.2 lib/mihari/web/api.rb
mihari-7.0.1 lib/mihari/web/api.rb
mihari-7.0.0 lib/mihari/web/api.rb
mihari-6.3.0 lib/mihari/web/api.rb
mihari-6.2.0 lib/mihari/web/api.rb
mihari-6.1.0 lib/mihari/web/api.rb
mihari-6.0.0 lib/mihari/web/api.rb
mihari-5.7.2 lib/mihari/web/api.rb
mihari-5.7.1 lib/mihari/web/api.rb