menu, table,rooms, orders structure
This commit is contained in:
21
app/controllers/api/restaurant/takeaway_controller.rb
Normal file
21
app/controllers/api/restaurant/takeaway_controller.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user