Skip to content

Commit

Permalink
#66: added document for new REST calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Jul 31, 2011
1 parent cf2fb5f commit f0ad7c5
Show file tree
Hide file tree
Showing 3 changed files with 794 additions and 122 deletions.
Expand Up @@ -210,7 +210,7 @@ class UrlMappings
]
}

name restViewCurrentDeployment: "/rest/v1/$fabric/deployments/current/$id"(controller: 'plan') {
name restViewCurrentDeployment: "/rest/v1/$fabric/deployment/current/$id"(controller: 'plan') {
action = [
HEAD: 'rest_view_current_deployment',
GET: 'rest_view_current_deployment',
Expand All @@ -225,7 +225,7 @@ class UrlMappings
]
}

name restViewArchivedDeployment: "/rest/v1/$fabric/deployments/archived/$id"(controller: 'plan') {
name restViewArchivedDeployment: "/rest/v1/$fabric/deployment/archived/$id"(controller: 'plan') {
action = [
HEAD: 'rest_view_archived_deployment',
GET: 'rest_view_archived_deployment'
Expand Down
Expand Up @@ -313,6 +313,7 @@ public class PlanController extends ControllerBase
mapping: 'restPlan',
id: plan.id, params: [fabric: request.fabric]).toString()
}
response.addHeader("X-glu-count", map.size().toString())
render prettyPrintJsonWhenRequested(map)
}
else
Expand Down

0 comments on commit f0ad7c5

Please sign in to comment.