Package com.atlassian.jira.rest.v2.issue
Class ProjectCategoryResource
java.lang.Object
com.atlassian.jira.rest.v2.issue.ProjectCategoryResource
@Path("projectCategory")
@Consumes("application/json")
@Produces("application/json")
public class ProjectCategoryResource
extends Object
- Since:
- 6.3
-
Constructor Summary
ConstructorsConstructorDescriptionProjectCategoryResource(ProjectManager projectManager, JiraBaseUrls jiraBaseUrls, JiraAuthenticationContext authContext, GlobalPermissionManager globalPermissionManager, I18nHelper i18n, AccessDisablingHelper accessDisablingHelper) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponseCreate a project category via POST.jakarta.ws.rs.core.ResponseReturns all project categoriesjakarta.ws.rs.core.ResponseContains a representation of a project category in JSON format.jakarta.ws.rs.core.ResponseDelete a project category.jakarta.ws.rs.core.ResponseupdateProjectCategory(Long id, ProjectCategoryBean bean) Modify a project category via PUT.
-
Constructor Details
-
ProjectCategoryResource
@Inject public ProjectCategoryResource(ProjectManager projectManager, JiraBaseUrls jiraBaseUrls, JiraAuthenticationContext authContext, GlobalPermissionManager globalPermissionManager, I18nHelper i18n, AccessDisablingHelper accessDisablingHelper)
-
-
Method Details
-
getProjectCategoryById
@GET @Path("{id}") public jakarta.ws.rs.core.Response getProjectCategoryById(@PathParam("id") Long id) Contains a representation of a project category in JSON format.- Parameters:
id- project category id- Returns:
- a project category view it.
- Since:
- v6.3
-
getAllProjectCategories
@GET public jakarta.ws.rs.core.Response getAllProjectCategories()Returns all project categories- Returns:
- all project categories
- Since:
- v6.3
-
createProjectCategory
Create a project category via POST.- Since:
- v6.3
-
removeProjectCategory
@DELETE @Path("{id}") public jakarta.ws.rs.core.Response removeProjectCategory(@PathParam("id") Long id) Delete a project category.- Parameters:
id- Id of the project category to delete.- Returns:
- An empty or error response. view it.
- Since:
- v6.3
-
updateProjectCategory
@PUT @Path("{id}") public jakarta.ws.rs.core.Response updateProjectCategory(@PathParam("id") Long id, ProjectCategoryBean bean) Modify a project category via PUT. Any fields present in the PUT will override existing values. As a convenience, if a field is not present, it is silently ignored.- Since:
- v6.3
-