controller creation
This commit is contained in:
33
app/controllers/api/invoices_controller.rb
Normal file
33
app/controllers/api/invoices_controller.rb
Normal 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
|
||||
Reference in New Issue
Block a user