fix examples

This commit is contained in:
Richard van der Hoff 2019-05-01 17:49:11 +01:00
parent cc4bd762df
commit f203c98794

View File

@ -640,7 +640,7 @@ class ResetPasswordRestServlet(RestServlet):
"""Post request to allow an administrator reset password for a user. """Post request to allow an administrator reset password for a user.
This needs user to have administrator access in Synapse. This needs user to have administrator access in Synapse.
Example: Example:
http://localhost:8008/_matrix/client/api/v1/admin/reset_password/ http://localhost:8008/_synapse/admin/v1/reset_password/
@user:to_reset_password?access_token=admin_access_token @user:to_reset_password?access_token=admin_access_token
JsonBodyToSend: JsonBodyToSend:
{ {
@ -683,7 +683,7 @@ class GetUsersPaginatedRestServlet(RestServlet):
"""Get request to get specific number of users from Synapse. """Get request to get specific number of users from Synapse.
This needs user to have administrator access in Synapse. This needs user to have administrator access in Synapse.
Example: Example:
http://localhost:8008/_matrix/client/api/v1/admin/users_paginate/ http://localhost:8008/_synapse/admin/v1/users_paginate/
@admin:user?access_token=admin_access_token&start=0&limit=10 @admin:user?access_token=admin_access_token&start=0&limit=10
Returns: Returns:
200 OK with json object {list[dict[str, Any]], count} or empty object. 200 OK with json object {list[dict[str, Any]], count} or empty object.
@ -731,7 +731,7 @@ class GetUsersPaginatedRestServlet(RestServlet):
"""Post request to get specific number of users from Synapse.. """Post request to get specific number of users from Synapse..
This needs user to have administrator access in Synapse. This needs user to have administrator access in Synapse.
Example: Example:
http://localhost:8008/_matrix/client/api/v1/admin/users_paginate/ http://localhost:8008/_synapse/admin/v1/users_paginate/
@admin:user?access_token=admin_access_token @admin:user?access_token=admin_access_token
JsonBodyToSend: JsonBodyToSend:
{ {
@ -766,7 +766,7 @@ class SearchUsersRestServlet(RestServlet):
search term. search term.
This needs user to have administrator access in Synapse. This needs user to have administrator access in Synapse.
Example: Example:
http://localhost:8008/_matrix/client/api/v1/admin/search_users/ http://localhost:8008/_synapse/admin/v1/search_users/
@admin:user?access_token=admin_access_token&term=alice @admin:user?access_token=admin_access_token&term=alice
Returns: Returns:
200 OK with json object {list[dict[str, Any]], count} or empty object. 200 OK with json object {list[dict[str, Any]], count} or empty object.