Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Move the admin API to /_synapse/admin/v1 #5119

Merged
merged 6 commits into from
May 2, 2019
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented May 1, 2019

Fixes #4850. Note that the existing endpoints will still work, for now at least.

Note to the reviewer: There are three commits here, which are probably easier to review individually. The first tweaks the implementations so that they no longer depend on ClientV1RestServlet, which is a bit of a solution looking for a problem anyway. The second commit adds the new prefix to the endpoints. The third commit moves the impl to a different package, since it was confusing to have it under synapse.rest.client.v1.

@richvdh richvdh requested a review from a team May 1, 2019 14:48
@codecov
Copy link

codecov bot commented May 1, 2019

Codecov Report

Merging #5119 into develop will increase coverage by <.01%.
The diff coverage is 94.73%.

@@             Coverage Diff             @@
##           develop    #5119      +/-   ##
===========================================
+ Coverage    61.65%   61.65%   +<.01%     
===========================================
  Files          334      334              
  Lines        34523    34531       +8     
  Branches      5681     5682       +1     
===========================================
+ Hits         21284    21290       +6     
- Misses       11709    11711       +2     
  Partials      1530     1530

@richvdh richvdh merged commit 1df2f80 into develop May 2, 2019
@richvdh richvdh deleted the rav/admin_api_urls branch May 2, 2019 09:12
spantaleev added a commit to devture/matrix-corporal that referenced this pull request Sep 22, 2020
Switching from using `/_matrix/client/r0/admin/users/{userId}`
to using `/_synapse/admin/v2/users`.

Using Admin APIs from the /_matrix/client/r0/ prefix is more
and more deprecated and will stop working at some point.

For reference:
- matrix-org/synapse#5119
- https://github.com/matrix-org/synapse/releases/tag/v1.20.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants