Sha256: 3dd4f8f99258cac2f8a092c70050b8b352ad1fe5ac2297b3357d555b681210ea

Contents?: true

Size: 627 Bytes

Versions: 12

Compression:

Stored size: 627 Bytes

Contents

# Health Check endpoint
module MnoEnterprise
  class StatusController < ApplicationController
    # Simple check to see that the app is up
    # Returns:
    #   {status: 'Ok'}
    def ping
      render json: {status: 'Ok'}
    end

    # Version check
    # Returns:
    #   {
    #     'app-version': '9061048-6811c4a',
    #     'mno-enterprise-version': '0.0.1',
    #     'env': 'test'
    #   }
    def version
      data = {
          'app-version' => MnoEnterprise::APP_VERSION,
          'mno-enteprise-version' => MnoEnterprise::VERSION,
          'env' => Rails.env
      }
      render json: data
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mno-enterprise-api-3.1.1 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.0.4 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.4 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.1.0 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.0.3 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.3 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.0.2 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.2 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.0.1 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.1 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.0.0 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.0 app/controllers/mno_enterprise/status_controller.rb