Class ContentPropertyResource
java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource
@PublicApi
@Consumes("application/json")
@Produces("application/json")
@Path("/content/{id}/property")
public class ContentPropertyResource
extends Object
A REST resource for manipulating content properties.
Content properties are a key / value store of properties attached to a piece of Content. The key is a string, and the value is a JSON object.
- Since:
- 5.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ContentId contentId, JsonContentProperty newProperty) create
(ContentId contentId, String key, JsonContentProperty newProperty) javax.ws.rs.core.Response
update
(ContentId contentId, String key, JsonContentProperty property)
-
Constructor Details
-
ContentPropertyResource
-
-
Method Details
-
create
@POST public JsonContentProperty create(@PathParam("id") ContentId contentId, JsonContentProperty newProperty) throws ServiceException - Throws:
ServiceException
-
create
@POST @Path("{key}") public JsonContentProperty create(@PathParam("id") ContentId contentId, @PathParam("key") String key, JsonContentProperty newProperty) throws ServiceException - Throws:
ServiceException
-
findAll
@GET public RestList<JsonContentProperty> findAll(@PathParam("id") ContentId contentId, @QueryParam("expand") String expand, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("10") int limit, @Context javax.ws.rs.core.UriInfo uriInfo) throws ServiceException - Throws:
ServiceException
-
findByKey
@GET @Path("{key}") public JsonContentProperty findByKey(@PathParam("id") ContentId contentId, @PathParam("key") String key, @QueryParam("expand") String expand) throws ServiceException - Throws:
ServiceException
-
update
@PUT @Path("{key}") public JsonContentProperty update(@PathParam("id") ContentId contentId, @PathParam("key") String key, JsonContentProperty property) throws IOException, ServiceException - Throws:
IOException
ServiceException
-
delete
@DELETE @Path("{key}") public javax.ws.rs.core.Response delete(@PathParam("id") ContentId contentId, @PathParam("key") String key) throws ServiceException - Throws:
ServiceException
-