Project

General

Profile

Download (1.2 KB) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / config / routes.rb @ be52ca64

1
require 'katello/api/mapper_extensions'
2

    
3
class ActionDispatch::Routing::Mapper
4
  include Katello::Routing::MapperExtensions
5
end
6

    
7
ForemanPipeline::Engine.routes.draw do
8
  
9

    
10
  scope :foreman_pipeline, :path => '/foreman_pipeline' do
11
    
12
    namespace :api do
13
    
14
      api_resources :organizations, :only => [] do  
15
        api_resources :jobs do
16
          member do
17
            put :set_content_view
18
            put :set_hostgroup
19
            put :set_resource
20
            get :available_resources
21
            put :set_jenkins
22
            put :set_environment
23
            get :run_job
24
            put :add_projects
25
            put :remove_projects
26
            put :set_jenkins_user
27
          end
28
        end
29

    
30
        api_resources :jenkins_instances do
31
          member do
32
            get :check_jenkins
33
          end
34

    
35

    
36
        end
37

    
38
        api_resources :jenkins_projects, :only => [:show, :update]
39

    
40
        api_resources :jenkins_requests, :only => [] do
41
          collection do
42
            get :list
43
          end
44
        end
45

    
46
        api_resources :jenkins_project_params, :only => [:update]
47

    
48
        api_resources :jenkins_users, :only => [:index, :create, :destroy, :show, :update]  
49
        
50
      end
51
    end
52
  end  
53
end