34 lines
546 B
Ruby
34 lines
546 B
Ruby
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
|