Skip to content

Commit

Permalink
πŸ› docs required status code for bin responses
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed May 26, 2024
1 parent a7f8fb4 commit 91aef96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/api_business.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 91aef96

Please sign in to comment.