app/controllers/api/v1/ping_controller.rb
# GET /api/v1/ping
# Returns JSON formatted message and HTTP status code indicating service is responding.
GET /api/v1/ping
Returns JSON formatted message and HTTP status code indicating service is responding.
GET / api / v1 / ping Returns JSON formatted message and HTTP status code indicating service is responding .
def index
      current_time = DateTime.now.to_datetime
      render json: {
          service: service_name,
          version: service_version,
          message: "Hello World",
          timestamp: current_time
      }, status: 200
    end
def index current_time = DateTime . now . to_datetime render json : { service : service_name , version : service_version , message : "Hello World" , timestamp : current_time } , status : 200 end
GET /api/v1/ping
Returns JSON formatted message and HTTP status code indicating service is responding.
GET / api / v1 / ping Returns JSON formatted message and HTTP status code indicating service is responding .