mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-10 03:12:20 +03:00
Inconsistency Between Documented and Actual API Responses: user_id Missing in /users Endpoint Responses #5178 #4928
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ln-ws on GitHub (Aug 26, 2024).
Describe the Bug
The API documentation indicates that responses from the
/usersendpoint should include bothidanduser_idproperties. However, in practice, the actual API responses only contain theidproperty, and theuser_idproperty is missing.Steps to Reproduce
LISTrequest to the/usersendpoint on your BookStack server.user_idproperty is missing from the response, despite being documented.Expected Behaviour
The response from the
/usersendpoint should include bothidanduser_idproperties, where theuser_idproperty matches the value of theidproperty for each user object within the data array.Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v24.05.3
@ssddanbrown commented on GitHub (Aug 26, 2024):
I'm deleting all above comments as I don't see any as relevant to the discussion, or they contain links to downloads on other sites that I'm not comfortable with having here, and/or they contain claims I'm not going to validate.
Any further links to external downloads (including archive links) will result in a block for
BookStackAppprojects.@ssddanbrown commented on GitHub (Aug 26, 2024):
Thanks for raising @ln-ws.
I can confirm the example response does not match the actual response.
I'll just look to remove the
user_idfrom the example response. Theidvalue should be used instead.@ln-ws commented on GitHub (Aug 26, 2024):
Thank you
@ssddanbrown commented on GitHub (Aug 27, 2024):
Thanks again @ln-ws, this has been addressed as part of
1f2506221ato be part of the next patch release.