Files
sx-fc/app/controllers/api/restaurant/seatings_controller.rb
2017-04-05 08:24:21 +06:30

22 lines
525 B
Ruby

class Api::Restaurant::SeatingsController < ActionController::API
def index
render json: Zone.order("order_by")
end
# Description
# This API full the current status of table and if there is order attached to this table - Order_ID will be return
# Output
# status: {available, cleaning, occupied, reserved}, order_id : <current_order_id>
def show
end
#Input Params
# table_id: table_id
# Output
# status: error | success, error_message: <Problem with moving table>
def update
end
end