mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-22 02:36:38 +00:00
api: correct openapi def
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user