Files
sx-fc/app/controllers/api/restaurant/takeaway_controller.rb
2017-04-03 21:26:22 +06:30

22 lines
527 B
Ruby

class Api::Restaurant::TakeawaysController < ActionController::API
def index
render json: SeatTable.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