Interface ContentResource


@Path("/content") public interface ContentResource
  • Method Details

    • createContent

      @POST @Consumes("application/json") @Produces("application/json") javax.ws.rs.core.Response createContent(@QueryParam("status") @DefaultValue("current") String status, @QueryParam("expand") @DefaultValue("body.storage,history,space,container.history,container.version,version,ancestors") String expand)
    • getContent

      @GET @Produces("application/json") javax.ws.rs.core.Response getContent(@QueryParam("type") @DefaultValue("page") String type, @QueryParam("spaceKey") String spaceKey, @QueryParam("title") String title, @QueryParam("status") String status, @QueryParam("postingDay") String postingDay, @QueryParam("expand") String expand, @QueryParam("start") Integer start, @QueryParam("limit") @DefaultValue("25") Integer limit)
    • getContentById

      @GET @Produces("application/json") @Path("/{id}") javax.ws.rs.core.Response getContentById(@PathParam("id") String id, @QueryParam("status") String status, @QueryParam("version") Integer version, @QueryParam("expand") @DefaultValue("history,space,version") String expand)
    • delete

      @DELETE @Produces("application/json") @Path("/{id}") javax.ws.rs.core.Response delete(@PathParam("id") String id, @QueryParam("status") String status)
    • getMacroBodyByHash

      @GET @Produces("application/json") @Path("/{id}/history/{version}/macro/hash/{hash}") javax.ws.rs.core.Response getMacroBodyByHash(@PathParam("id") String id, @PathParam("version") int version, @PathParam("hash") String hash)
    • getMacroBodyByMacroId

      @GET @Produces("application/json") @Path("/{id}/history/{version}/macro/id/{macroId}") javax.ws.rs.core.Response getMacroBodyByMacroId(@PathParam("macroId") String macroId, @PathParam("id") String id, @PathParam("version") int version)
    • getHistory

      @GET @Produces("application/json") @Path("/{id}/history") javax.ws.rs.core.Response getHistory(@PathParam("id") String id, @QueryParam("expand") @DefaultValue("previousVersion,nextVersion,lastUpdated") String expand)
    • update

      @PUT @Consumes("application/json") @Produces("application/json") @Path("/{contentId}") javax.ws.rs.core.Response update(@PathParam("contentId") String contentId, @QueryParam("status") String status, @QueryParam("conflictPolicy") @DefaultValue("abort") String conflictPolicy)
    • search

      @GET @Produces("application/json") @Path("/search") javax.ws.rs.core.Response search(@QueryParam("cql") String cql, @QueryParam("cqlcontext") String cqlcontext, @QueryParam("expand") String expand, @QueryParam("start") Integer start, @QueryParam("limit") @DefaultValue("25") Integer limit)