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

25 lines
469 B
Ruby

class Api::Restaurant::InvoiceController < ActionController::API
before :authenticate_token
#Description
# This API show current order details
# Input Params - order_id
def show
order = Order.find(params[:order_id])
order.order_items
end
# Description
# This API allow new invoice creation
# Input Params
# order_id
# Output Params
# Status [Success | Error | System Error] , order_id, error_message (*)
def create
end
end