Skip to content

Commit 0fc1543

Browse files
committed
Fix links to Synapse Admin API docs
Point to the new repository maintained by Element instead of the one that was under Matrix.org that was archived. The files now also have the `.md` extension rather than `.rst`. And a few URL fragments have changed.
1 parent 52f0e7c commit 0fc1543

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
[![docs.rs page](https://docs.rs/synapse-admin-api/badge.svg)](https://docs.rs/synapse-admin-api/)
55
![license: MIT](https://img.shields.io/crates/l/synapse-admin-api.svg)
66

7-
**synapse-admin-api** contains serializable types for the requests and responses for each endpoint in the [synapse admin API](https://github.com/matrix-org/synapse/tree/master/docs/admin_api).
7+
**synapse-admin-api** contains serializable types for the requests and responses for each endpoint in the [synapse admin API](https://github.com/element-hq/synapse/tree/master/docs/admin_api).

src/account_validity/renew_account/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [GET /_synapse/admin/v1/account_validity/validity](https://github.com/matrix-org/synapse/blob/master/docs/admin_api/account_validity.rst)
1+
//! [GET /_synapse/admin/v1/account_validity/validity](https://github.com/element-hq/synapse/blob/master/docs/admin_api/account_validity.md)
22
33
use ruma::{
44
api::{metadata, request, response, Metadata},

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! compiles all types as exhaustive. By enabling this feature you opt out of all semver
1616
//! guarantees synapse-admin-api otherwise provides.
1717
//!
18-
//! [api]: https://github.com/matrix-org/synapse/tree/master/docs/admin_api
18+
//! [api]: https://github.com/element-hq/synapse/tree/master/docs/admin_api
1919
2020
// FIXME: don't allow dead code, warn on missing docs
2121
#![allow(dead_code)]

src/register_users/shared_secret_register/v1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [POST /_synapse/admin/v1/register](https://matrix-org.github.io/synapse/latest/admin_api/register_api.html#shared-secret-registration)
1+
//! [POST /_synapse/admin/v1/register](https://github.com/element-hq/synapse/blob/master/docs/admin_api/register_api.md)
22
33
#[cfg(feature = "shared-secret-registration-mac")]
44
use hmac::{digest::InvalidLength, Hmac, Mac};
@@ -89,7 +89,7 @@ impl Response {
8989

9090
/// Calculate the MAC based on the given inputs.
9191
///
92-
/// See <https://matrix-org.github.io/synapse/latest/admin_api/register_api.html#shared-secret-registration> for details.
92+
/// See <https://github.com/element-hq/synapse/blob/master/docs/admin_api/register_api.md> for details.
9393
#[cfg(feature = "shared-secret-registration-mac")]
9494
pub fn hmac(
9595
registration_shared_secret: &str,

src/register_users/shared_secret_register_nonce/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [GET /_synapse/admin/v1/register](https://matrix-org.github.io/synapse/latest/admin_api/register_api.html#shared-secret-registration)
1+
//! [GET /_synapse/admin/v1/register](https://github.com/element-hq/synapse/blob/master/docs/admin_api/register_api.md)
22
33
use ruma::api::{metadata, request, response, Metadata};
44

src/users/create_or_modify/v2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [PUT /_synapse/admin/v2/users/:user_id](https://github.com/matrix-org/synapse/blob/master/docs/admin_api/user_admin_api.rst#create-or-modify-account)
1+
//! [PUT /_synapse/admin/v2/users/:user_id](https://github.com/element-hq/synapse/blob/master/docs/admin_api/user_admin_api.md#create-or-modify-account)
22
33
use ruma::{
44
api::{metadata, request, response, Metadata},

src/users/deactivate_account/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [POST /_synapse/admin/v1/deactivate/:user_id](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/user_admin_api.rst#deactivate-account)
1+
//! [POST /_synapse/admin/v1/deactivate/:user_id](https://github.com/element-hq/synapse/blob/develop/docs/admin_api/user_admin_api.md#deactivate-account)
22
33
use ruma::{
44
api::{metadata, request, response, Metadata},

src/users/get_details/v2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [GET /_synapse/admin/v2/users/:user_id](https://github.com/matrix-org/synapse/blob/master/docs/admin_api/user_admin_api.rst#query-user-account)
1+
//! [GET /_synapse/admin/v2/users/:user_id](https://github.com/element-hq/synapse/blob/master/docs/admin_api/user_admin_api.md#query-user-account)
22
33
use ruma::{
44
api::{metadata, request, response, Metadata},

src/users/is_user_admin/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [GET /_synapse/admin/v1/users/:user_id/admin](https://github.com/matrix-org/synapse/blob/master/docs/admin_api/user_admin_api.rst#get-whether-a-user-is-a-server-administrator-or-not)
1+
//! [GET /_synapse/admin/v1/users/:user_id/admin](https://github.com/element-hq/synapse/blob/master/docs/admin_api/user_admin_api.md#get-whether-a-user-is-a-server-administrator-or-not)
22
33
use ruma::{
44
api::{metadata, request, response, Metadata},

src/users/list_joined_rooms/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! [GET /_synapse/admin/v1/users/:user_id/joined_rooms](https://github.com/matrix-org/synapse/blob/master/docs/admin_api/user_admin_api.rst#list-room-memberships-of-an-user)
1+
//! [GET /_synapse/admin/v1/users/:user_id/joined_rooms](https://github.com/element-hq/synapse/blob/master/docs/admin_api/user_admin_api.md#list-joined-rooms-of-a-user)
22
33
use ruma::{
44
api::{metadata, request, response, Metadata},

0 commit comments

Comments
 (0)