I am working with the Confluence REST api, and want to extract some documents. The document body is available in several formats: editor
, storage
, view
, export_view
, anonymous_export_view
,... But I have not found a description anywhere of what they are, or what each one is intended for. (This answer mentions several formats but doesn't say what they are.) In my checks, all formats have embedded HTML-style markup but with different non-standard attributes. Any pointers?
Specifically, I am looking for the best format to use for conversion to other, non-confluence formats.
Example query:
https://confuence.example.com/rest/api/content?spaceKey=doc&expand=body.editor,body.storage,body.anonymous_export_view,body.view,body.export_view&start=0&limit=50
This returns several alternative formats, and I see lots of random-seeming differences. So what's the story?
The best description of each of these fields that I have found is on the Java API documentation for Confluence, specifically for the ContentRepresentation class.
You may notice that some of the descriptions in the above docs are truncated. They're just document comments rendered by Javadoc, so something has gone wrong there. As it happens, I work for Atlassian Premier Support, so I've tracked down the complete document comments (yay code search) for your reading pleasure:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With