-
Notifications
You must be signed in to change notification settings - Fork 899
/
UrlMappings.groovy
42 lines (36 loc) · 1.83 KB
/
UrlMappings.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
class UrlMappings {
static mappings = {
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
//1.2 api url paths
"/api/jobs" (controller: 'menu', action: 'apiJobsList')
"/api/jobs/export" (controller: 'menu', action: 'apiJobsExport')
"/api/jobs/import" (controller: 'scheduledExecution', action: 'apiJobsImport')
"/api/job/$id/run" (controller: 'scheduledExecution', action: 'apiJobRun')
"/api/job/$id" (controller: 'api'){
//passthrough from ApiController to ScheduledExecutionController
action = [GET:"apiJobExport", DELETE:"apiJobDelete"]
}
"/api/executions/running" (controller: 'menu', action: 'apiExecutionsRunning')
"/api/execution/$id" (controller: 'execution', action: 'apiExecution')
"/api/execution/$id/abort" (controller: 'execution', action: 'apiExecutionAbort')
"/api/run/command" (controller: 'scheduledExecution', action: 'apiRunCommand')
"/api/run/script" (controller: 'scheduledExecution', action: 'apiRunScript')
"/api/projects" (controller: 'framework', action: 'listProjects')
"/api/project/$project?" (controller: 'framework', action: 'getProject')
"/api/history" (controller: 'reports', action: 'apiHistory')
"/api/renderError" (controller: 'api', action: 'renderError')
"/api/error" (controller: 'api', action: 'error')
"/api/$action?" (controller: 'api', action: 'invalid')
"/run/$id?"( controller:'framework',action:'nodes')
"/history/$id?"( controller:'reports',action:'index')
"/jobs/$id?"( controller:'menu',action:'jobs')
"/job/$action?/$id?"( controller:'scheduledExecution')
"/resources/$action?/$id?"( controller:'framework')
"/events/$action?/$id?"( controller:'reports')
"500"(view:'/error')
}
}