The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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 Champions.
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 Champions.
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.

TAGS
AUG Leaders

Atlassian Community Events