Skip to content

Commit 56e19da

Browse files
committed
better doc comment on logout endpoint
1 parent 1492da2 commit 56e19da

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

nexus/external-api/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3111,7 +3111,10 @@ pub trait NexusExternalApi {
31113111
query_params: Query<PaginatedById>,
31123112
) -> Result<HttpResponseOk<ResultsPage<views::ConsoleSession>>, HttpError>;
31133113

3114-
/// Delete all of user's tokens and sessions
3114+
/// Log user out
3115+
///
3116+
/// Silo admins can use this endpoint to log the specified user out by
3117+
/// deleting all of their tokens AND sessions. This cannot be undone.
31153118
#[endpoint {
31163119
method = POST,
31173120
path = "/v1/users/{user_id}/logout",

openapi/nexus.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11690,7 +11690,8 @@
1169011690
"tags": [
1169111691
"silos"
1169211692
],
11693-
"summary": "Delete all of user's tokens and sessions",
11693+
"summary": "Log user out",
11694+
"description": "Silo admins can use this endpoint to log the specified user out by deleting all of their tokens AND sessions. This cannot be undone.",
1169411695
"operationId": "user_logout",
1169511696
"parameters": [
1169611697
{

0 commit comments

Comments
 (0)