@ExperimentalApi public class ExperimentalContentResource extends Object
Constructor and Description |
---|
ExperimentalContentResource(ContentService contentService,
SpaceService spaceService,
ContentMacroService contentMacroService,
ContentTrashService contentTrashService,
CQLSearchService searchService,
ContentDraftService contentDraftService) |
Modifier and Type | Method and Description |
---|---|
Content |
getContentById(ContentId id,
List<ContentStatus> statuses,
Integer version,
String expand)
Returns a piece of Content.
|
public ExperimentalContentResource(ContentService contentService, SpaceService spaceService, ContentMacroService contentMacroService, ContentTrashService contentTrashService, CQLSearchService searchService, ContentDraftService contentDraftService)
@ExperimentalApi public Content getContentById(ContentId id, List<ContentStatus> statuses, Integer version, String expand) throws ServiceException
Returns a piece of Content.
Example request URI(s):
http://example.com/rest/api/content/1234?expand=space,body.view,version,container
http://example.com/rest/api/content/1234?status=any
id
- the id of the contentstatuses
- list of Content statuses to filter results on. Default value: [current]
expand
- A comma separated list of properties to expand on the content. Default value: history,space,version
We can also specify some extensions such as extensions.inlineProperties
(for getting inline comment-specific properties)
or extensions.resolution
for the resolution status of each comment in the resultsServiceException
Copyright © 2003–2016 Atlassian. All rights reserved.