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 Details

    • ChildContentResource

      @Inject public ChildContentResource(ChildContentService childContentService)
  • 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