app/controllers/api/v1/status_controller.rb
# GET /status
# Returns detailed status report about the API service.
GET /status
Returns detailed status report about the API service.
GET / status Returns detailed status report about the API service .
def index
      current_time = DateTime.now.to_datetime
      render json: {
        service: service_name,
        version: service_version,
        rails_version: Rails::VERSION::STRING,
        ruby_version: RUBY_VERSION,
        database_connection: check_database,
        timestamp: current_time
      }, status: 200
    end
def index current_time = DateTime . now . to_datetime render json : { service : service_name , version : service_version , rails_version : Rails :: VERSION :: STRING , ruby_version : RUBY_VERSION , database_connection : check_database , timestamp : current_time } , status : 200 end
GET /status
Returns detailed status report about the API service.
GET / status Returns detailed status report about the API service .