@ExperimentalApi public class ExperimentalContentResource extends Object
Constructor and Description |
---|
ExperimentalContentResource(CQLSearchService searchService,
ContentService contentService) |
Modifier and Type | Method and Description |
---|---|
Content |
getContentById(ContentId id,
List<ContentStatus> statuses,
Integer version,
String expand) |
PageResponse<Content> |
search(String cql,
String cqlcontext,
String expand,
int start,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Fetch a list of content using CQL
|
public ExperimentalContentResource(CQLSearchService searchService, ContentService contentService)
@PublicApi public Content getContentById(ContentId id, List<ContentStatus> statuses, Integer version, String expand) throws ServiceException
ServiceException
public PageResponse<Content> search(String cql, String cqlcontext, String expand, int start, int limit, @Context javax.ws.rs.core.UriInfo uriInfo)
For example :
http://localhost:8080/confluence/rest/experimental/content/?cql=creator=currentUser()&cqlcontext={%22spaceKey%22:%22TST%22, %22contentId%22:%2255%22}
cql
- a cql query string to use to locate contentcqlcontext
- the context to execute a cql search in, this is the json serialized form of SearchContextexpand
- a comma separated list of properties to expand on the content.start
- the start point of the collection to returnlimit
- the limit of the number of items to return, this may be restricted by fixed system limitsuriInfo
- (injected) information about the request URICopyright © 2003–2016 Atlassian. All rights reserved.
View cookie preferences