atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

The Confluence.get_all_pages_from_space() implementation is wrong.

Open MacHu-GWU opened this issue 1 year ago • 2 comments

The Confluence.get_all_pages_from_space() implementation is wrong.

Based on the official document https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-spaces-id-pages-get, the url should be url = "https://{your-domain}/wiki/api/v2/spaces/{id}/pages". But in the code, the url is url = "rest/api/content".

MacHu-GWU avatar Dec 13 '24 07:12 MacHu-GWU

The implementation is not wrong, but it is still using the original (i.e. v1) API schema. See here: https://github.com/atlassian-api/atlassian-python-api/issues/1200

GrazingScientist avatar Jan 22 '25 11:01 GrazingScientist

Hi ! I am planning to add implement with the following condition : if self.cloud: url = wiki/api/v2/pages/{id} else: url = "rest/api/content".

gonchik avatar Apr 01 '25 21:04 gonchik