This commit is contained in:
Tamo 2025-01-06 11:57:25 +01:00
parent ff49250c1a
commit e579554c84
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
10 changed files with 22 additions and 46 deletions

View file

@ -31,7 +31,6 @@ use crate::routes::Pagination;
You must have the master key or the default admin key to access the keys route. More information about the keys and their rights.
Accessing any route under `/keys` without having set a master key will result in an error.",
external_docs(url = "https://www.meilisearch.com/docs/reference/api/keys"),
)),
)]
pub struct ApiKeyApi;
@ -50,7 +49,6 @@ pub fn configure(cfg: &mut web::ServiceConfig) {
);
}
/// Create an API Key
///
/// Create an API Key.
@ -130,7 +128,6 @@ impl ListApiKeys {
}
}
/// Get API Keys
///
/// List all API Keys
@ -201,7 +198,6 @@ pub async fn list_api_keys(
Ok(HttpResponse::Ok().json(page_view))
}
/// Get an API Key
///
/// Get an API key from its `uid` or its `key` field.
@ -266,7 +262,6 @@ pub async fn get_api_key(
Ok(HttpResponse::Ok().json(res))
}
/// Update a Key
///
/// Update the name and description of an API key.
@ -334,8 +329,6 @@ pub async fn patch_api_key(
Ok(HttpResponse::Ok().json(res))
}
/// Delete a key
///
/// Delete the specified API key.