Sha256: 414bc6bb3972f66fa3f3a1c2bd228da6b9e122a8d13d4e3b8bbb85eb6edb5e51

Contents?: true

Size: 1015 Bytes

Versions: 34

Compression:

Stored size: 1015 Bytes

Contents

Rails.application.routes.draw do
  namespace :admin do
    resources :users do
      member do
        put :generate_api_key
        put :clear_api_key
      end
    end
  end

  namespace :api do
    resources :shipments, :except => [:new,:edit] do
      put :event, :on => :member
      resources :inventory_units, :except => [:new,:edit] do
        put :event, :on => :member
      end
    end
    resources :orders, :except => [:new,:edit] do
      put :event, :on => :member
      resources :shipments, :except => [:new,:edit]
      resources :line_items, :except => [:new,:edit]
      resources :inventory_units, :except => [:new,:edit] do
        put :event, :on => :member
      end
    end
    resources :inventory_units, :except => [:new,:edit] do
      put :event, :on => :member
    end
    resources :products, :except => [:new,:edit]
    resources :countries, :except => [:new,:edit] do
      resources :states, :except => [:new,:edit]
    end
    resources :states, :except => [:new,:edit]
  end

end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
spree_api-0.70.7 config/routes.rb
spree_api-0.70.6 config/routes.rb
spree_api-0.60.6 config/routes.rb
spree_api-0.70.5 config/routes.rb
spree_api-0.70.4 config/routes.rb
spree_api-0.60.5 config/routes.rb
spree_api-0.70.3 config/routes.rb
spree_api-0.70.2 config/routes.rb
spree_api-0.30.2 config/routes.rb
spree_api-0.40.4 config/routes.rb
spree_api-0.50.4 config/routes.rb
spree_api-0.60.4 config/routes.rb
spree_api-0.50.3 config/routes.rb
spree_api-0.60.3 config/routes.rb
spree_api-0.70.1 config/routes.rb
spree_api-0.70.0 config/routes.rb
spree_api-0.60.2 config/routes.rb
spree_api-0.70.0.rc2 config/routes.rb
spree_api-0.70.RC1 config/routes.rb
spree_bushido_api-0.80.28 config/routes.rb