Sha256: 2d129f826bd1d596bba8458015a92b0227af3e0d96056290502cedd6c02e3f05

Contents?: true

Size: 737 Bytes

Versions: 16

Compression:

Stored size: 737 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',
    #     'mno-api-host': 'https://uat.maestrano.io'
    #   }
    def version
      data = {
          'app-version' => MnoEnterprise::APP_VERSION,
          'mno-enteprise-version' => MnoEnterprise::VERSION,
          'env' => Rails.env,
          'mno-api-host' => MnoEnterprise.mno_api_host
      }
      render json: data
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mno-enterprise-api-3.3.2 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.2.1 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.3.1 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.3.0 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.2.0 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.1.4 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.0.7 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.9 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.1.3 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.0.6 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.8 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.1.2 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-3.0.5 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.7 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.6 app/controllers/mno_enterprise/status_controller.rb
mno-enterprise-api-2.0.5 app/controllers/mno_enterprise/status_controller.rb