public class ContentBodyResource extends Object
| Constructor and Description |
|---|
ContentBodyResource(ContentBodyConversionService service) |
| Modifier and Type | Method and Description |
|---|---|
ContentBody |
convert(ContentBody body,
ContentRepresentation toRepresentation,
String expand)
Converts between content body representations.
|
public ContentBodyResource(ContentBodyConversionService service)
@PublicApi public ContentBody convert(ContentBody body, ContentRepresentation toRepresentation, String expand) throws ServiceException
Converts between content body representations.
Not all representations can be converted to/from other formats. Supported conversions:
| Source Representation | Destination Representation Supported |
|---|---|
| storage | view,export_view,styled_view,editor |
| editor | storage |
| view | None |
| export_view | None |
| styled_view | None |
Example request URI(s):
http://example.com/confluence/rest/api/contentbody/convert/viewbody - the body to convert fromtoRepresentation - the representation to convert toServiceExceptionCopyright © 2003–2022 Atlassian. All rights reserved.