fix: correct OpenAPI annotation for delete item endpoint
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -160,16 +160,16 @@ pub async fn handle_post_item(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[utoipa::path(
|
#[utoipa::path(
|
||||||
get,
|
delete,
|
||||||
path = "/api/item/{item_id}",
|
path = "/api/item/{item_id}",
|
||||||
responses(
|
responses(
|
||||||
(status = 200, description = "Successfully retrieved item content", body = ApiResponse<String>),
|
(status = 200, description = "Successfully deleted item", body = ApiResponse<()>),
|
||||||
(status = 401, description = "Unauthorized"),
|
(status = 401, description = "Unauthorized"),
|
||||||
(status = 404, description = "Item not found"),
|
(status = 404, description = "Item not found"),
|
||||||
(status = 500, description = "Internal server error")
|
(status = 500, description = "Internal server error")
|
||||||
),
|
),
|
||||||
params(
|
params(
|
||||||
("item_id" = i64, Path, description = "ID of the item to retrieve")
|
("item_id" = i64, Path, description = "ID of the item to delete")
|
||||||
),
|
),
|
||||||
security(
|
security(
|
||||||
("bearerAuth" = [])
|
("bearerAuth" = [])
|
||||||
|
|||||||
Reference in New Issue
Block a user