From 91aef96405b6e065355225fa9956550f77f0dcd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Garc=C3=ADa=20Garz=C3=B3n?= Date: Sun, 26 May 2024 16:57:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20docs=20required=20status=20code?= =?UTF-8?q?=20for=20bin=20responses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/api_business.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/api_business.py b/backend/api_business.py index 9566cc2..1cef3ee 100644 --- a/backend/api_business.py +++ b/backend/api_business.py @@ -70,6 +70,7 @@ def api_invoice_list(user: dict = Depends(validated_user)) -> list[Invoice]: @app.get( '/api/invoice/{invoice_number}/pdf', response_class=PdfStreamingResponse, + status_code=200, ) def api_invoice_pdf(invoice_number: str, user: dict = Depends(validated_user)): from yamlns import ns @@ -83,6 +84,7 @@ def api_invoice_pdf(invoice_number: str, user: dict = Depends(validated_user)): @app.get( '/api/invoices/zip', response_class=ZipStreamingResponse, + status_code=200, ) def api_invoices_zip(invoice_numbers: Annotated[list[str], Query()] = None, user: dict = Depends(validated_user)): from yamlns import ns