Class ChildContentResource
java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.ChildContentResource
@Consumes("application/json")
@Produces("application/json")
@Path("/content/{id}/child")
public class ChildContentResource
extends Object
REST wrapper for the
ChildContentService
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchildren
(ContentId contentId, String expand, Integer parentVersion, int start, int limit, javax.ws.rs.core.UriInfo uriInfo) childrenOfType
(ContentId contentId, ContentType type, String expand, Integer parentVersion, int start, int limit, javax.ws.rs.core.UriInfo uriInfo) commentsOfContent
(ContentId contentId, String expand, Integer parentVersion, int start, int limit, Set<String> location, String depth, javax.ws.rs.core.UriInfo uriInfo)
-
Constructor Details
-
ChildContentResource
-
-
Method Details
-
children
@GET public Map<ContentType,PageResponse<Content>> children(@PathParam("id") ContentId contentId, @QueryParam("expand") @DefaultValue("") String expand, @QueryParam("parentVersion") @DefaultValue("0") Integer parentVersion, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("25") int limit, @Context javax.ws.rs.core.UriInfo uriInfo) throws ServiceException - Throws:
ServiceException
-
childrenOfType
@GET @Path("/{type}") public RestList<Content> childrenOfType(@PathParam("id") ContentId contentId, @PathParam("type") ContentType type, @QueryParam("expand") @DefaultValue("") String expand, @QueryParam("parentVersion") @DefaultValue("0") Integer parentVersion, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("25") int limit, @Context javax.ws.rs.core.UriInfo uriInfo) throws ServiceException - Throws:
ServiceException
-
commentsOfContent
@GET @Path("/comment") public RestList<Content> commentsOfContent(@PathParam("id") ContentId contentId, @QueryParam("expand") @DefaultValue("") String expand, @QueryParam("parentVersion") @DefaultValue("0") Integer parentVersion, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("25") int limit, @QueryParam("location") Set<String> location, @QueryParam("depth") @DefaultValue("") String depth, @Context javax.ws.rs.core.UriInfo uriInfo) throws ServiceException - Throws:
ServiceException
-