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