summary refs log tree commit diff
path: root/scripts-dev/sphinx_api_docs.sh (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-06-19Add a bulk user info endpoint and deprecate the old one (#46)Andrew Morgan6-38/+330
The current `/user/<user_id>/info` API was useful in that it could be used by any user to lookup whether another user was deactivate or expired. However, it was impractical as it only allowed for a single lookup at once. Clients trying to use this API were met with speed issues as they tried to query this information for all users in a room. This PR adds an equivalent CS and Federation API that takes a list of user IDs, and returning a mapping from user ID to info dictionary. Note that the federation in this PR was a bit trickier than in the original #12 as we can no longer use a federation query, as those don't allow for JSON bodies - which we require to pass a list of user IDs. Inste