Sha256: d3fd9549eacfc5a3554aa560b9d1875bcd91a900be948c98710f8b16fa402424
Contents?: true
Size: 1.19 KB
Versions: 11
Compression:
Stored size: 1.19 KB
Contents
Rails.application.routes.draw do resources :scc_accounts do collection do post 'test_connection' put 'test_connection' get 'auto_complete_search' end member do patch 'test_connection' put 'sync' put 'bulk_subscribe' end end resources :scc_products, only: %i[index show] do member do put 'subscribe' put 'unsubscribe' end end namespace :api, :defaults => { :format => 'json' } do scope '(:apiv)', :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v1|v2/, :constraints => ApiConstraints.new(:version => 2, :default => true) do resources :scc_accounts do collection do post 'test_connection' get 'auto_complete_search' end member do put 'test_connection' put 'sync' put 'bulk_subscribe' end end constraints(:scc_account_id => /[^\/]+/) do resources :scc_accounts, :only => [] do resources :scc_products, only: %i[index show] do member do put 'subscribe' end end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems