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/rest/api/contentbody/convert/view
body
- the body to convert fromtoRepresentation
- the representation to convert toServiceException
Copyright © 2003–2018 Atlassian. All rights reserved.