Skip to content

Commit

Permalink
doc: update openapi doc for api_key routes
Browse files Browse the repository at this point in the history
  • Loading branch information
densumesh authored and skeptrunedev committed Apr 9, 2024
1 parent c79aad1 commit 329260b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/handlers/user_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub struct SetUserApiKeyResponse {
/// Create a new api key for the auth'ed user. Successful response will contain the newly created api key. If a write role is assigned the api key will have permission level of the auth'ed user who calls this endpoint.
#[utoipa::path(
post,
path = "/user/set_api_key",
path = "/user/api_key",
context_path = "/api",
tag = "user",
request_body(content = SetUserApiKeyRequest, description = "JSON request payload to create a new user api key", content_type = "application/json"),
Expand Down Expand Up @@ -166,7 +166,7 @@ pub async fn set_user_api_key(
/// Get the api keys which belong to the auth'ed user. The actual api key values are not returned, only the ids, names, and creation dates.
#[utoipa::path(
post,
path = "/user/get_api_key",
path = "/user/api_key",
context_path = "/api",
tag = "user",
responses(
Expand Down Expand Up @@ -200,7 +200,7 @@ pub struct DeleteUserApiKeyRequest {
/// Delete an api key for the auth'ed user.
#[utoipa::path(
delete,
path = "/user/delete_api_key/{api_key_id}",
path = "/user/api_key/{api_key_id}",
context_path = "/api",
tag = "user",
responses(
Expand Down

0 comments on commit 329260b

Please sign in to comment.