mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Add comments
This commit is contained in:
parent
293ef29655
commit
63fda37e20
4 changed files with 177 additions and 49 deletions
|
@ -39,6 +39,22 @@ class UserDirectorySearchRestServlet(RestServlet):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def on_POST(self, request):
|
||||
"""Searches for users in directory
|
||||
|
||||
Returns:
|
||||
dict of the form::
|
||||
|
||||
{
|
||||
"limited": <bool>, # whether there were more results or not
|
||||
"results": [ # Ordered by best match first
|
||||
{
|
||||
"user_id": <user_id>,
|
||||
"display_name": <display_name>,
|
||||
"avatar_url": <avatar_url>
|
||||
}
|
||||
]
|
||||
}
|
||||
"""
|
||||
yield self.auth.get_user_by_req(request, allow_guest=False)
|
||||
body = parse_json_object_from_request(request)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue