Class SpacePropertyResource
java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.SpacePropertyResource
@PublicApi
@Consumes("application/json")
@Produces("application/json")
@Path("/space/{spaceKey}/property")
public class SpacePropertyResource
extends Object
A REST resource for manipulating space properties.
Space properties are a key / value store of properties attached to a Space. The key is a string, and the value is a JSON object.
- Since:
- 5.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String spaceKey, JsonSpaceProperty newProperty) create
(String spaceKey, String propertyKey, JsonSpaceProperty newProperty) javax.ws.rs.core.Response
update
(String spaceKey, String propertyKey, JsonSpaceProperty property)
-
Constructor Details
-
SpacePropertyResource
-
-
Method Details
-
create
@POST public JsonSpaceProperty create(@PathParam("spaceKey") String spaceKey, JsonSpaceProperty newProperty) throws ServiceException - Throws:
ServiceException
-
create
@POST @Path("{key}") public JsonSpaceProperty create(@PathParam("spaceKey") String spaceKey, @PathParam("key") String propertyKey, JsonSpaceProperty newProperty) throws ServiceException - Throws:
ServiceException
-
get
@GET public PageResponse<JsonSpaceProperty> get(@PathParam("spaceKey") String spaceKey, @QueryParam("expand") @DefaultValue("version") String expand, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("10") int limit, @Context javax.ws.rs.core.UriInfo uriInfo) throws ServiceException - Throws:
ServiceException
-
get
@GET @Path("{key}") public JsonSpaceProperty get(@PathParam("spaceKey") String spaceKey, @PathParam("key") String propertyKey, @QueryParam("expand") @DefaultValue("version") String expand) throws ServiceException - Throws:
ServiceException
-
update
@PUT @Path("{key}") public JsonSpaceProperty update(@PathParam("spaceKey") String spaceKey, @PathParam("key") String propertyKey, JsonSpaceProperty property) throws ServiceException - Throws:
ServiceException
-
delete
@DELETE @Path("{key}") public javax.ws.rs.core.Response delete(@PathParam("spaceKey") String spaceKey, @PathParam("key") String propertyKey) throws ServiceException - Throws:
ServiceException
-