public class ContentBodyResource extends Object
Constructor and Description |
---|
ContentBodyResource(ContentBodyConversionService service) |
Modifier and Type | Method and Description |
---|---|
ContentBody |
convert(ContentBody body,
ContentRepresentation toRepresentation)
Converts between content body representations.
|
public ContentBodyResource(ContentBodyConversionService service)
@PublicApi public ContentBody convert(ContentBody body, ContentRepresentation toRepresentation) 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,editor |
editor | storage |
view | None |
export_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–2015 Atlassian. All rights reserved.