class Api::BookingsController < ActionController::API #Show customer by ID def create @customer = Customer.find_by(params[:id]) end end