Sha256: 979f5b782eb1f025254ffd851292605d804e8f356bedf1fc75caa45277771f7b
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
# # Copyright 2014 Red Hat, Inc. # # This software is licensed to you under the GNU General Public # License as published by the Free Software Foundation; either version # 2 of the License (GPLv2) or (at your option) any later version. # There is NO WARRANTY for this software, express or implied, # including the implied warranties of MERCHANTABILITY, # NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should # have received a copy of GPLv2 along with this software; if not, see # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 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 # rubocop:disable SymbolName status = { :version => Katello::VERSION, :timeUTC => Time.now.getutc } respond_for_show :resource => status, :template => "server_status" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katello-2.2.2 | app/controllers/katello/api/v2/ping_controller.rb |