Hello everyone, we make extensive use of confluence server REST API and, currently, need to solve the following problem:
Given a list of page ids, how to get each page’s properties?
Currently, our solution simply iterates through this list and retrieves the properties of each page by leveraging:
https://docs.atlassian.com/ConfluenceServer/rest/7.18.3/#content-getContentById
i.e.:
GET
http://base.url/rest/api/content/{id}?expand=metadata.labels,body.view,etc
Where {id} is the id of a page.
This results in poor perfomance and creates a ton of connections.
What I am looking for is something like:
GET
http://base.url/rest/api/content?expand=metadata.labels,body.view,etc&id={list_of_ids}
Where {list_of_ids} is a comma-separated list of pages.
But, currently, this functionality is unfortunately missing, is there any other way to get the desired outcome?
Technical details about our setup:
Confluence server:
Version: 7.4.11
BuildNumber: 11943