@Path(value="project") @Consumes(value={"application/xml","application/json"}) @Produces(value={"application/xml","application/json"}) public class ProjectResource extends Object
Constructor and Description |
---|
ProjectResource(BambooUserManager bambooUserManager,
CachedPlanManager cachedPlanManager,
LabelManager labelManager,
ProjectManager projectManager,
PlanRestService planRestService) |
Modifier and Type | Method and Description |
---|---|
RestProjects |
getAllProjects(javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Method used to list all projects defined in Bamboo.
|
RestProject |
getProject(String projectKey,
javax.ws.rs.core.UriInfo uriInfo,
com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Method used to retrieve information for project specified as project key
Should be invoked as /rest/api/latest/project/PROJECTKEY
|
public ProjectResource(BambooUserManager bambooUserManager, CachedPlanManager cachedPlanManager, LabelManager labelManager, ProjectManager projectManager, PlanRestService planRestService)
@GET public RestProjects getAllProjects(@Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Possible expand parameters projects - list of projects projects.project - list of projects with project details projects.project.plans - list of project details and plans for project projects.project.plans.plan - list of project details and plans for project with plan details
@GET @Path(value="{projectKey}") public RestProject getProject(@PathParam(value="projectKey") String projectKey, @Context javax.ws.rs.core.UriInfo uriInfo, @Context com.atlassian.plugins.rest.common.security.AuthenticationContext authenticationContext)
Possible expand parameters plans - list of plans for project plans.plan - list of plans with plan details (only plans visible - READ permission for user) plans.plan.actions - list of plans with plan details and actions available for user for plan
projectKey
- Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.