api: correct openapi def

This commit is contained in:
Xavier Stouder
2025-07-02 20:53:25 +02:00
parent 7bbb3ff9cf
commit 58a96dc687
3 changed files with 74 additions and 85 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ pub struct DeleteAdminTokenRequest {
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DeleteAdminTokenResponse;
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct IntrospectAdminTokenRequest {
pub admin_token: String,
}
-1
View File
@@ -197,7 +197,6 @@ fn DeleteAdminToken() -> () {}
description = "
Return information about the calling admin API token.
",
params(IntrospectAdminTokenRequest),
responses(
(status = 200, description = "Information about the admin token", body = IntrospectAdminTokenResponse),
(status = 500, description = "Internal server error")