trabajo-afectivo/config/routes/ticket.rb

50 lines
4.1 KiB
Ruby
Raw Normal View History

2013-08-21 19:16:42 +00:00
Zammad::Application.routes.draw do
api_path = Rails.configuration.api_path
2013-08-21 19:16:42 +00:00
# tickets
2017-11-23 08:09:44 +00:00
match api_path + '/tickets/search', to: 'tickets#search', via: %i[get post]
2015-09-17 01:04:16 +00:00
match api_path + '/tickets/selector', to: 'tickets#selector', via: :post
match api_path + '/tickets', to: 'tickets#index', via: :get
match api_path + '/tickets/:id', to: 'tickets#show', via: :get
match api_path + '/tickets', to: 'tickets#create', via: :post
match api_path + '/tickets/:id', to: 'tickets#update', via: :put
match api_path + '/tickets/:id', to: 'tickets#destroy', via: :delete
match api_path + '/ticket_create', to: 'tickets#ticket_create', via: :get
match api_path + '/ticket_split', to: 'tickets#ticket_split', via: :get
match api_path + '/ticket_history/:id', to: 'tickets#ticket_history', via: :get
match api_path + '/ticket_customer', to: 'tickets#ticket_customer', via: :get
match api_path + '/ticket_related/:ticket_id', to: 'tickets#ticket_related', via: :get
2019-06-04 03:40:48 +00:00
match api_path + '/ticket_recent', to: 'tickets#ticket_recent', via: :get
match api_path + '/ticket_merge/:slave_ticket_id/:master_ticket_number', to: 'tickets#ticket_merge', via: :get
match api_path + '/ticket_stats', to: 'tickets#stats', via: :get
2013-08-21 19:16:42 +00:00
# ticket overviews
match api_path + '/ticket_overviews', to: 'ticket_overviews#show', via: :get
2013-08-21 19:16:42 +00:00
# ticket priority
match api_path + '/ticket_priorities', to: 'ticket_priorities#index', via: :get
match api_path + '/ticket_priorities/:id', to: 'ticket_priorities#show', via: :get
match api_path + '/ticket_priorities', to: 'ticket_priorities#create', via: :post
match api_path + '/ticket_priorities/:id', to: 'ticket_priorities#update', via: :put
match api_path + '/ticket_priorities/:id', to: 'ticket_priorities#destroy', via: :delete
2013-08-21 19:16:42 +00:00
# ticket state
match api_path + '/ticket_states', to: 'ticket_states#index', via: :get
match api_path + '/ticket_states/:id', to: 'ticket_states#show', via: :get
match api_path + '/ticket_states', to: 'ticket_states#create', via: :post
match api_path + '/ticket_states/:id', to: 'ticket_states#update', via: :put
match api_path + '/ticket_states/:id', to: 'ticket_states#destroy', via: :delete
2013-08-21 19:16:42 +00:00
# ticket articles
match api_path + '/ticket_articles', to: 'ticket_articles#index', via: :get
match api_path + '/ticket_articles/:id', to: 'ticket_articles#show', via: :get
match api_path + '/ticket_articles/by_ticket/:id', to: 'ticket_articles#index_by_ticket', via: :get
match api_path + '/ticket_articles', to: 'ticket_articles#create', via: :post
match api_path + '/ticket_articles/:id', to: 'ticket_articles#update', via: :put
match api_path + '/ticket_articles/:id', to: 'ticket_articles#destroy', via: :delete
match api_path + '/ticket_attachment/:ticket_id/:article_id/:id', to: 'ticket_articles#attachment', via: :get
match api_path + '/ticket_attachment_upload_clone_by_article/:article_id', to: 'ticket_articles#ticket_attachment_upload_clone_by_article', via: :post
match api_path + '/ticket_article_plain/:id', to: 'ticket_articles#article_plain', via: :get
end