Sha256: 6d168bc79f6c335210ce861a6abe7ae49d4bdcb6c967459393a9c109fa2ee599

Contents?: true

Size: 514 Bytes

Versions: 14

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Web
    module Endpoints
      #
      # Config API endpoint
      #
      class Configs < Grape::API
        namespace :configs do
          desc "list configs", {
            is_array: true,
            success: Entities::Config,
            summary: "List configs"
          }
          get "/" do
            configs = Services::ConfigSearcher.call
            present(configs, with: Entities::Config)
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mihari-7.3.2 lib/mihari/web/endpoints/configs.rb
mihari-7.3.1 lib/mihari/web/endpoints/configs.rb
mihari-7.3.0 lib/mihari/web/endpoints/configs.rb
mihari-7.2.0 lib/mihari/web/endpoints/configs.rb
mihari-7.1.3 lib/mihari/web/endpoints/configs.rb
mihari-7.1.2 lib/mihari/web/endpoints/configs.rb
mihari-7.1.1 lib/mihari/web/endpoints/configs.rb
mihari-7.1.0 lib/mihari/web/endpoints/configs.rb
mihari-7.0.5 lib/mihari/web/endpoints/configs.rb
mihari-7.0.4 lib/mihari/web/endpoints/configs.rb
mihari-7.0.3 lib/mihari/web/endpoints/configs.rb
mihari-7.0.2 lib/mihari/web/endpoints/configs.rb
mihari-7.0.1 lib/mihari/web/endpoints/configs.rb
mihari-7.0.0 lib/mihari/web/endpoints/configs.rb