review all the parameters and tags

This commit is contained in:
Tamo 2024-12-26 18:44:08 +01:00
parent aab6ffec30
commit 5f55e88484
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
5 changed files with 25 additions and 23 deletions

View file

@ -208,7 +208,7 @@ pub async fn list_api_keys(
/// Get an API key from its `uid` or its `key` field.
#[utoipa::path(
get,
path = "/{key}",
path = "/{uidOrKey}",
tag = "Keys",
security(("Bearer" = ["keys.get", "keys.*", "*"])),
params(("uidOrKey" = String, Path, format = Password, example = "7b198a7f-52a0-4188-8762-9ad93cd608b2", description = "The `uid` or `key` field of an existing API key", nullable = false)),
@ -275,7 +275,7 @@ pub async fn get_api_key(
/// If there is an issue with the `key` or `uid` of a key, then you must recreate one from scratch.
#[utoipa::path(
patch,
path = "/{key}",
path = "/{uidOrKey}",
tag = "Keys",
security(("Bearer" = ["keys.update", "keys.*", "*"])),
params(("uidOrKey" = String, Path, format = Password, example = "7b198a7f-52a0-4188-8762-9ad93cd608b2", description = "The `uid` or `key` field of an existing API key", nullable = false)),
@ -345,7 +345,7 @@ pub async fn patch_api_key(
/// If there is an issue with the `key` or `uid` of a key, then you must recreate one from scratch.
#[utoipa::path(
delete,
path = "/{key}",
path = "/{uidOrKey}",
tag = "Keys",
security(("Bearer" = ["keys.delete", "keys.*", "*"])),
params(("uidOrKey" = String, Path, format = Password, example = "7b198a7f-52a0-4188-8762-9ad93cd608b2", description = "The `uid` or `key` field of an existing API key", nullable = false)),