Sha256: 0b2a2b8ebf9465791f3c7edfbce679ebb2c0de7b1aee573c0efc2b03ceeb2135

Contents?: true

Size: 778 Bytes

Versions: 14

Compression:

Stored size: 778 Bytes

Contents

module Katello
  class Api::V2::PingController < Api::V2::ApiController
    resource_description do
      api_version "v2"
    end

    skip_before_action :authorize
    before_action :require_login, :only => [:index]

    api :GET, "/ping", N_("Shows status of system and it's subcomponents")
    description N_("This service is only available for authenticated users")
    def index
      respond_for_show :resource => Ping.ping
    end

    api :GET, "/status", N_("Shows version information")
    description N_("This service is available for unauthenticated users")
    def server_status
      status = { :version => Katello::VERSION,
                 :timeUTC => Time.now.getutc }
      respond_for_show :resource => status, :template => "server_status"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
katello-3.13.4 app/controllers/katello/api/v2/ping_controller.rb
katello-3.13.3 app/controllers/katello/api/v2/ping_controller.rb
katello-3.13.2 app/controllers/katello/api/v2/ping_controller.rb
katello-3.13.1 app/controllers/katello/api/v2/ping_controller.rb
katello-3.13.0 app/controllers/katello/api/v2/ping_controller.rb
katello-3.13.0.rc2.1 app/controllers/katello/api/v2/ping_controller.rb
katello-3.13.0.rc2 app/controllers/katello/api/v2/ping_controller.rb
katello-3.12.3 app/controllers/katello/api/v2/ping_controller.rb
katello-3.12.2 app/controllers/katello/api/v2/ping_controller.rb
katello-3.13.0.rc1 app/controllers/katello/api/v2/ping_controller.rb
katello-3.12.1 app/controllers/katello/api/v2/ping_controller.rb
katello-3.12.0 app/controllers/katello/api/v2/ping_controller.rb
katello-3.12.0.rc2 app/controllers/katello/api/v2/ping_controller.rb
katello-3.12.0.rc1 app/controllers/katello/api/v2/ping_controller.rb