fix api spec

This commit is contained in:
2025-11-10 22:45:39 +01:00
parent 8094ac3190
commit 8dddb0b940
+5 -1
View File
@@ -186,7 +186,11 @@ pub async fn get_document(
responses( responses(
(status = 201, description = "Document created", body = DocumentDetailResponse), (status = 201, description = "Document created", body = DocumentDetailResponse),
(status = 200, description = "Existing document reused", body = DocumentDetailResponse), (status = 200, description = "Existing document reused", body = DocumentDetailResponse),
(status = 409, description = "Document with identical contents already exists") (
status = 409,
description = "Document with identical contents already exists",
body = crate::error::ApiErrorResponse
)
), ),
tag = "Documents" tag = "Documents"
)] )]