Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getting xml file type Atom

Дмитрий Хартуев January 31, 2019

Purpose: to get an xml file of the Atom type, including the content of any page (including the blog) with base64 images.
What ways are found:
Use the REST API to retrieve data in JSON format (rest/api/content/11111?expand=body.export_view), further retrieve data in the Body property and get references via another one using the REST API (/rest/api/content/8686732/child/attachment). 
This method is inconvenient by double accessing the page and the need to analyze the received data in JSON format.

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2019

Do you have a question here?

Дмитрий Хартуев January 31, 2019

Is there any other way?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2019

No, the REST call is the only way to do it.  I can't see any more efficient approach to getting the attachment - you have to know what to fetch in the second call, and as you don't know, you need the first call in order to find out what you want.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events