@Path(value="/content")
public interface ContentResource
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createContent(String status,
String expand) |
javax.ws.rs.core.Response |
deleteId(String id,
String status) |
javax.ws.rs.core.Response |
getContent(String type,
String spaceKey,
String title,
String status,
String postingDay,
String expand,
Integer start,
Integer limit) |
javax.ws.rs.core.Response |
getContentById(String id,
String status,
Integer version,
String expand) |
javax.ws.rs.core.Response |
getHistory(String id,
String expand) |
javax.ws.rs.core.Response |
getMacroBodyByHash(String id,
int version,
String hash) |
javax.ws.rs.core.Response |
getMacroBodyByMacroId(String macroId,
String id,
int version) |
javax.ws.rs.core.Response |
search(String cql,
String cqlcontext,
String expand,
Integer start,
Integer limit) |
javax.ws.rs.core.Response |
update(String contentId,
String status,
String conflictPolicy) |
@POST @Consumes(value="application/json") @Produces(value="application/json") javax.ws.rs.core.Response createContent(@QueryParam(value="status") @DefaultValue(value="current") String status, @QueryParam(value="expand") @DefaultValue(value="body.storage,history,space,container.history,container.version,version,ancestors") String expand)
@GET @Produces(value="application/json") javax.ws.rs.core.Response getContent(@QueryParam(value="type") @DefaultValue(value="page") String type, @QueryParam(value="spaceKey") String spaceKey, @QueryParam(value="title") String title, @QueryParam(value="status") String status, @QueryParam(value="postingDay") String postingDay, @QueryParam(value="expand") String expand, @QueryParam(value="start") Integer start, @QueryParam(value="limit") @DefaultValue(value="25") Integer limit)
@GET @Produces(value="application/json") @Path(value="/{id}") javax.ws.rs.core.Response getContentById(@PathParam(value="id") String id, @QueryParam(value="status") String status, @QueryParam(value="version") Integer version, @QueryParam(value="expand") @DefaultValue(value="history,space,version") String expand)
@DELETE @Produces(value="application/json") @Path(value="/{id}") javax.ws.rs.core.Response deleteId(@PathParam(value="id") String id, @QueryParam(value="status") String status)
@GET @Produces(value="application/json") @Path(value="/{id}/history/{version}/macro/hash/{hash}") javax.ws.rs.core.Response getMacroBodyByHash(@PathParam(value="id") String id, @PathParam(value="version") int version, @PathParam(value="hash") String hash)
@GET @Produces(value="application/json") @Path(value="/{id}/history/{version}/macro/id/{macroId}") javax.ws.rs.core.Response getMacroBodyByMacroId(@PathParam(value="macroId") String macroId, @PathParam(value="id") String id, @PathParam(value="version") int version)
@GET @Produces(value="application/json") @Path(value="/{id}/history") javax.ws.rs.core.Response getHistory(@PathParam(value="id") String id, @QueryParam(value="expand") @DefaultValue(value="previousVersion,nextVersion,lastUpdated") String expand)
@PUT @Consumes(value="application/json") @Produces(value="application/json") @Path(value="/{contentId}") javax.ws.rs.core.Response update(@PathParam(value="contentId") String contentId, @QueryParam(value="status") String status, @QueryParam(value="conflictPolicy") @DefaultValue(value="abort") String conflictPolicy)
@GET @Produces(value="application/json") @Path(value="/search") javax.ws.rs.core.Response search(@QueryParam(value="cql") String cql, @QueryParam(value="cqlcontext") String cqlcontext, @QueryParam(value="expand") String expand, @QueryParam(value="start") Integer start, @QueryParam(value="limit") @DefaultValue(value="25") Integer limit)
This work is licensed under a Creative Commons Attribution 4.0 International License.