Sha256: 308552c851ccd53265c016ea91418ea37f733cf0f62c05a350b2cddb47e8a4aa
Contents?: true
Size: 784 Bytes
Versions: 13
Compression:
Stored size: 784 Bytes
Contents
module Katello class Api::V2::PingController < Api::V2::ApiController resource_description do api_version "v2" end skip_before_filter :authorize before_filter :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
13 entries across 13 versions & 1 rubygems