-
Suggestion
-
Resolution: Unresolved
Issue Summary
Currently, the V1 endpoint wiki/rest/api/content/{contentId}?expand=history.contributors.publishers.users exposes a list of users who contributed in the content.
With the V2 Get Custom Content by ID endpoint it seems that we no longer have that functionality.
Steps to Reproduce
- N/A
Expected Results
The V2 Custom Content endpoints return a list of accountIDs that contributed to that content.
Actual Results
The endpoint doesn't expose the accountIDs that contributed to that content.
Workaround
Leverage the Get custom content by id and add the parameter include-versions to your call. This will include the following information for each of the versions of the content:
{ "number": 100, "message": "", "minorEdit": false, "authorId": <<account_id>>, "createdAt": "2024-03-26T17:45:24.812Z", "page": { "id": <<id>>, "title": <<title>>, "body": { {...} } } }
Then, create a logic to filter out the distinct authorID for each versions of the custom content, and that should give you a list of all the contributors.
- mentioned in
-
Page Loading...