Add logout all endpoint.
This commit is contained in:
parent
3037b105c7
commit
c9b7b986c6
@ -2,3 +2,4 @@
|
|||||||
|
|
||||||
pub mod login;
|
pub mod login;
|
||||||
pub mod logout;
|
pub mod logout;
|
||||||
|
pub mod logout_all;
|
||||||
|
18
src/r0/session/logout_all.rs
Normal file
18
src/r0/session/logout_all.rs
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
//! [POST /_matrix/client/r0/logout/all](https://matrix.org/docs/spec/client_server/r0.4.0.html#post-matrix-client-r0-logout-all)
|
||||||
|
|
||||||
|
use ruma_api_macros::ruma_api;
|
||||||
|
|
||||||
|
ruma_api! {
|
||||||
|
metadata {
|
||||||
|
description: "Invalidates all access tokens for a user, so that they can no longer be used for authorization.",
|
||||||
|
method: POST,
|
||||||
|
name: "logout_all",
|
||||||
|
path: "/_matrix/client/r0/logout/all",
|
||||||
|
rate_limited: false,
|
||||||
|
requires_authentication: true,
|
||||||
|
}
|
||||||
|
|
||||||
|
request {}
|
||||||
|
|
||||||
|
response {}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user