controller creation

This commit is contained in:
Min Zeya Phyo
2017-04-08 16:40:06 +06:30
parent a74e5f9590
commit 225ebdb7ef
4 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
class Api::CustomersController < 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
def by_booking
end
def by_order
end
private
def process_items
end
end