mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
fmt
This commit is contained in:
parent
ff49250c1a
commit
e579554c84
10 changed files with 22 additions and 46 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue