From 6dd1cbccc71b13a7439bdff824205ac7de75be0c Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Wed, 13 Aug 2025 11:47:31 -0300 Subject: [PATCH] fix: correct OpenAPI annotation for delete item endpoint Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) --- src/modes/server/api/item.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modes/server/api/item.rs b/src/modes/server/api/item.rs index 5887181..d7da66f 100644 --- a/src/modes/server/api/item.rs +++ b/src/modes/server/api/item.rs @@ -160,16 +160,16 @@ pub async fn handle_post_item( } #[utoipa::path( - get, + delete, path = "/api/item/{item_id}", responses( - (status = 200, description = "Successfully retrieved item content", body = ApiResponse), + (status = 200, description = "Successfully deleted item", body = ApiResponse<()>), (status = 401, description = "Unauthorized"), (status = 404, description = "Item not found"), (status = 500, description = "Internal server error") ), params( - ("item_id" = i64, Path, description = "ID of the item to retrieve") + ("item_id" = i64, Path, description = "ID of the item to delete") ), security( ("bearerAuth" = [])