User Directory support in REST Backend

This commit is contained in:
Maxime Dor
2017-10-01 18:13:01 +02:00
parent c702a34aab
commit d0aac5ac52
5 changed files with 264 additions and 2 deletions

View File

@@ -91,9 +91,13 @@ Content-type: JSON UTF-8
#### Request Body
```
{
"by": "<search type>",
"search_term": "doe"
}
```
`by` can be:
- `name`
- `threepid`
#### Response Body:
If users found:
@@ -102,8 +106,8 @@ If users found:
"limited": false,
"results": [
{
"display_name": "John Doe",
"avatar_url": "http://domain.tld/path/to/avatar.png",
"display_name": "John Doe",
"user_id": "UserIdLocalpart"
},
{