Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
1
-
Severity 3 - Minor
-
Description
Issue Summary
Using the API to retrieve ADF content
The response from the endpoint '/wiki/api/v2/pages?id=${contentId}' and '/wiki/api/v2/pages/${contentId}' differs from each other in some pages while the ADF content is requested.
This does not happen with the storage format
Steps to Reproduce
- Using the API to retrieve the same content using the same endpoints but with different parameters (where version 5 is the latest, but could be any version >2)
response = await fetch(`https://${window.location.host}/wiki/api/v2/pages?id=${contentId}&space-id=${spaceId}&body-format=atlas_doc_format&version=5`) response.response = await response.json() response2 = await fetch(`https://${window.location.host}/wiki/api/v2/pages/${contentId}?body-format=atlas_doc_format`) response2.response = await response2.json() response.response.results[0].body.atlas_doc_format.value === response2.response.body.atlas_doc_format.value
Expected Results
Responses should be equal in the same endpoint using the same parameters as it is retrieving the same content
Actual Results
Responses might be different for some of the content
Workaround
No
Attachments
Issue Links
- mentioned in
-
Page Loading...