organization.rb 1.0 KB

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. Zammad::Application.routes.draw do
  3. api_path = Rails.configuration.api_path
  4. # organizations
  5. match api_path + '/organizations/import_example', to: 'organizations#import_example', via: :get
  6. match api_path + '/organizations/import', to: 'organizations#import_start', via: :post
  7. match api_path + '/organizations/search', to: 'organizations#search', via: %i[get post]
  8. match api_path + '/organizations', to: 'organizations#index', via: :get
  9. match api_path + '/organizations/:id', to: 'organizations#show', via: :get
  10. match api_path + '/organizations', to: 'organizations#create', via: :post
  11. match api_path + '/organizations/:id', to: 'organizations#update', via: :put
  12. match api_path + '/organizations/:id', to: 'organizations#destroy', via: :delete
  13. match api_path + '/organizations/history/:id', to: 'organizations#history', via: :get
  14. end