foodcourt apis for app

This commit is contained in:
Thein Lin Kyaw
2022-07-08 16:06:12 +06:30
parent 7485486868
commit 063345eae3
37 changed files with 785 additions and 171 deletions

View File

@@ -49,6 +49,8 @@ scope "(:locale)", locale: /en|mm/ do
post 'authenticate' => "authenticate#create"
delete 'authenticate' => "authenticate#destroy"
post 'check_emp_access_code' => 'authenticate#check_emp_access_code'
resources :shops, only: [:index, :show]
resources :verifications, only: [:new]
get 'get_tax_profiles' => "shops#get_tax_profiles"
@@ -86,8 +88,19 @@ scope "(:locale)", locale: /en|mm/ do
post "update_order_item" => "orders#update"
#Current active bookings
resources :bookings, only: [:index, :show, :create, :update]
resources :bookings, only: [:show] do
collection do
get 'pending'
get 'billed'
get 'completed'
get 'void'
end
end
get "customers/get_by_account" => "customers#get_customer_by_account"
resources :customers
# get customer by phone
get "get_customer_by_phone" => "customers#get_customer_by_phone"
#get customer details by order items
@@ -126,13 +139,14 @@ scope "(:locale)", locale: /en|mm/ do
post "sound_effect" => "sound_effect#sound_effect"
resources :sales, only: [:show]
#API for cashier app
post 'authenticate_cashier' => "authenticate#create_cashier"
post "shifts/new" => "shifts#create"
post "shifts/close" => "shifts#update"
post "request_bill" => "bill#request_bill"
post "paymal_payment" => "payments#paymal_payment"
post "create_paymal_payment" => "payments#create_paymal_payment"
get ":sale_id/void" => "void#overall_void"
#API for sync cloud
@@ -150,6 +164,14 @@ scope "(:locale)", locale: /en|mm/ do
get "search_paypar_account_no" => "payments#search_paypar_account_no"
# get "check_security_code" => "payments#check_security_code"
namespace :foodcourt do
resources :bills, only: [:create]
resources :orders, only: [:create]
resources :payments, only: [:create]
resources :void, only: [:create]
end
#for display image
get "display_image/:shop_code" => "display_images#display_image", as:'display_image'
end