java.lang.Object
com.atlassian.confluence.plugins.restapi.resources.LabelResource

@Consumes("application/json") @Produces("application/json") @Path("/label") public class LabelResource extends Object
REST wrapper for the LabelService.
  • Constructor Details

    • LabelResource

      @Inject public LabelResource(LabelService labelService)
  • Method Details

    • labels

      @GET @Path("labels") public RestList<Label> labels(@QueryParam("labelName") String labelName, @QueryParam("owner") String owner, @QueryParam("namespace") String namespace, @QueryParam("spaceKey") String spaceKey, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("100") int limit, @Context javax.ws.rs.core.UriInfo uriInfo) throws ServiceException
      Throws:
      ServiceException
    • related

      @GET @Path("/{labelName}/related") public PageResponse<Label> related(@Context javax.ws.rs.core.UriInfo uriInfo, @PathParam("labelName") String labelName, @QueryParam("start") int start, @QueryParam("limit") @DefaultValue("100") int limit) throws ServiceException
      Throws:
      ServiceException
    • recent

      @GET @Path("/recent") public PageResponse<Label> recent(@QueryParam("start") int start, @QueryParam("limit") @DefaultValue("100") int limit, @Context javax.ws.rs.core.UriInfo uriInfo) throws ServiceException
      Throws:
      ServiceException
    • popular

      @GET @Path("/popular") public PageResponse<Label> popular(@QueryParam("start") int start, @QueryParam("limit") @DefaultValue("100") int limit, @Context javax.ws.rs.core.UriInfo uriInfo) throws ServiceException
      Throws:
      ServiceException