organization.rb 996 B

123456789101112131415
  1. Zammad::Application.routes.draw do
  2. api_path = Rails.configuration.api_path
  3. # organizations
  4. match api_path + '/organizations/import_example', to: 'organizations#import_example', via: :get
  5. match api_path + '/organizations/import', to: 'organizations#import_start', via: :post
  6. match api_path + '/organizations/search', to: 'organizations#search', via: %i[get post]
  7. match api_path + '/organizations', to: 'organizations#index', via: :get
  8. match api_path + '/organizations/:id', to: 'organizations#show', via: :get
  9. match api_path + '/organizations', to: 'organizations#create', via: :post
  10. match api_path + '/organizations/:id', to: 'organizations#update', via: :put
  11. match api_path + '/organizations/:id', to: 'organizations#destroy', via: :delete
  12. match api_path + '/organizations/history/:id', to: 'organizations#history', via: :get
  13. end