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" = [])