api: change endpoint name and allow it to be called even if not in current token scope

This commit is contained in:
Xavier Stouder
2025-07-03 21:59:07 +02:00
parent 58a96dc687
commit 9a31b9c077
6 changed files with 21 additions and 20 deletions
+4 -4
View File
@@ -192,17 +192,17 @@ fn UpdateAdminToken() -> () {}
fn DeleteAdminToken() -> () {}
#[utoipa::path(get,
path = "/v2/IntrospectAdminToken",
path = "/v2/GetCurrentAdminTokenInfo",
tag = "Admin API token",
description = "
Return information about the calling admin API token.
",
responses(
(status = 200, description = "Information about the admin token", body = IntrospectAdminTokenResponse),
(status = 200, description = "Information about the admin token", body = GetCurrentAdminTokenInfoResponse),
(status = 500, description = "Internal server error")
),
)]
fn IntrospectAdminToken() -> () {}
fn GetCurrentAdminTokenInfo() -> () {}
// **********************************************
// Layout operations
@@ -885,7 +885,7 @@ impl Modify for SecurityAddon {
CreateAdminToken,
UpdateAdminToken,
DeleteAdminToken,
IntrospectAdminToken,
GetCurrentAdminTokenInfo,
// Layout operations
GetClusterLayout,
GetClusterLayoutHistory,