Sha256: 376ecfd80bf007bcd070442865eb5543cc31e3474490497aa3af1521401816e5
Contents?: true
Size: 784 Bytes
Versions: 60
Compression:
Stored size: 784 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
60 entries across 60 versions & 1 rubygems