apply points from review

pull/1096/head
Michael Telatynski 7 years ago
parent b80f38e11b
commit d219cbc978
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E

@ -1,4 +1,4 @@
# Copyright 2016 OpenMarket Ltd # Copyright 2017 New Vector Ltd
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
swagger: '2.0' swagger: '2.0'
info: info:
title: "Matrix Client-Server Profile API" title: "Matrix Client-Server User Directory API"
version: "1.0.0" version: "1.0.0"
host: localhost:8008 host: localhost:8008
schemes: schemes:
@ -31,7 +31,9 @@ paths:
post: post:
summary: Searches the user directory. summary: Searches the user directory.
description: |- description: |-
This API paginates over search results of the user directory. This API performs a server-side search over all users registered on the server.
Searches MXID and displayname case-insesitively for users that you share a room with or that are in public rooms.
operationId: postUserDirectorySearch
security: security:
- accessToken: [] - accessToken: []
parameters: parameters:
@ -46,12 +48,12 @@ paths:
example: "foo" example: "foo"
limit: limit:
type: number type: number
description: The maximum number of results to return description: The maximum number of results to return (10 if omitted), with a maximum of 50
example: 10 example: 10
required: ["search_term"] required: ["search_term"]
responses: responses:
200: 200:
description: The results of the paginated search. description: The results of the search.
examples: examples:
application/json: { application/json: {
"results": [ "results": [
@ -69,9 +71,11 @@ paths:
properties: properties:
results: results:
type: array type: array
description: Ordered by rank and then whether or not profile info is available.
items: items:
title: User title: User
type: object type: object
require: ["user_id"]
properties: properties:
user_id: user_id:
type: string type: string

Loading…
Cancel
Save