Is it possible to get the whole content of a Confluence Space from REST Api?
I try this example curl -u admin:admin http://localhost:8080/confluence/rest/api/content/3965072?expand=body.storage
But this is only the first page content.
Is it possible to get the whole content of a Confluence Space from REST Api?
I try this example curl -u admin:admin http://localhost:8080/confluence/rest/api/content/3965072?expand=body.storage
But this is only the first page content.
In the Confluence RestAPIs with which I worked it was important to recognize that every page is conceptually similar to a Space in that it may also contain other pages. There are also collections of things, like attachments, that hang off of the pages. As I recall the process is roughly this:
Note my earlier comment about making sure you reference the correct Confluence RestAPI documentation for your specific version. That was a point of GREAT confusion for me.
Yes, to need to do something like this:
http://localhost:8080/confluence/rest/api/space/SPACE_KEY/content?expand=body.storage
You can get also a specific type of content item (page or blogpost) like this:
http://localhost:8080/confluence/rest/api/space/SPACE_KEY/content/page?expand=body.storage
http://localhost:8080/confluence/rest/api/space/SPACE_KEY/content/blogpost?expand=body.storage
You need to take in consideration the pagination: https://developer.atlassian.com/confdev/confluence-rest-api/pagination-in-the-rest-api