- Sort Score
- Result 10 results
- Languages All
Results 261 - 270 of 435 for tutorial008b_py39 (0.09 sec)
-
tests/test_tutorial/test_custom_response/test_tutorial008.py
from pathlib import Path from fastapi.testclient import TestClient from docs_src.custom_response import tutorial008_py39 from docs_src.custom_response.tutorial008_py39 import app client = TestClient(app) def test_get(tmp_path: Path): file_path: Path = tmp_path / "large-video-file.mp4" tutorial008_py39.some_file_path = str(file_path) test_content = b"Fake video bytes" file_path.write_bytes(test_content)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 502 bytes - Viewed (0) -
docs/es/docs/tutorial/path-operation-configuration.md
En estos casos, podría tener sentido almacenar las tags en un `Enum`. **FastAPI** soporta eso de la misma manera que con strings normales: {* ../../docs_src/path_operation_configuration/tutorial002b_py39.py hl[1,8:10,13,18] *} ## Resumen y Descripción { #summary-and-description } Puedes añadir un `summary` y `description`: {* ../../docs_src/path_operation_configuration/tutorial003_py310.py hl[18:19] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-operation-configuration.md
Nestes casos, pode fazer sentido armazenar as tags em um `Enum`. **FastAPI** suporta isso da mesma maneira que com strings simples: {* ../../docs_src/path_operation_configuration/tutorial002b_py39.py hl[1,8:10,13,18] *} ## Resumo e descrição { #summary-and-description } Você pode adicionar um `summary` e uma `description`: {* ../../docs_src/path_operation_configuration/tutorial003_py310.py hl[18:19] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.4K bytes - Viewed (0) -
docs/pt/docs/advanced/behind-a-proxy.md
Nesse caso, o path original `/app` seria servido em `/api/v1/app`. Embora todo o seu código esteja escrito assumindo que existe apenas `/app`. {* ../../docs_src/behind_a_proxy/tutorial001_py39.py hl[6] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 17.2K bytes - Viewed (0) -
docs/en/docs/advanced/generate-clients.md
## Create a TypeScript SDK { #create-a-typescript-sdk } Let's start with a simple FastAPI application: {* ../../docs_src/generate_clients/tutorial001_py39.py hl[7:9,12:13,16:17,21] *} Notice that the *path operations* define the models they use for request payload and response payload, using the models `Item` and `ResponseMessage`. ### API Docs { #api-docs }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10.1K bytes - Viewed (1) -
docs/ru/docs/tutorial/path-params-numeric-validations.md
Поэтому вы можете определить функцию так: {* ../../docs_src/path_params_numeric_validations/tutorial002_py39.py hl[7] *} Но имейте в виду, что если вы используете `Annotated`, вы не столкнётесь с этой проблемой, так как вы не используете значения по умолчанию параметров функции для `Query()` или `Path()`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10.6K bytes - Viewed (0) -
docs/pt/docs/how-to/extending-openapi.md
Primeiro, escreva toda a sua aplicação **FastAPI** normalmente: {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[1,4,7:9] *} ### Gerar o esquema OpenAPI { #generate-the-openapi-schema } Em seguida, use a mesma função utilitária para gerar o esquema OpenAPI, dentro de uma função `custom_openapi()`: {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[2,15:21] *} ### Modificar o esquema OpenAPI { #modify-the-openapi-schema }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 3.6K bytes - Viewed (0) -
docs/es/docs/advanced/additional-responses.md
Por ejemplo, para declarar otro response con un código de estado `404` y un modelo Pydantic `Message`, puedes escribir: {* ../../docs_src/additional_responses/tutorial001_py39.py hl[18,22] *} /// note | Nota Ten en cuenta que debes devolver el `JSONResponse` directamente. /// /// info | Información La clave `model` no es parte de OpenAPI.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 9.3K bytes - Viewed (0) -
docs/de/docs/advanced/additional-responses.md
Um beispielsweise eine weitere Response mit dem Statuscode `404` und einem Pydantic-Modell `Message` zu deklarieren, können Sie schreiben: {* ../../docs_src/additional_responses/tutorial001_py39.py hl[18,22] *} /// note | Hinweis Beachten Sie, dass Sie die `JSONResponse` direkt zurückgeben müssen. /// /// info | Info Der `model`-Schlüssel ist nicht Teil von OpenAPI.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10K bytes - Viewed (0) -
docs/en/docs/advanced/additional-responses.md
For example, to declare another response with a status code `404` and a Pydantic model `Message`, you can write: {* ../../docs_src/additional_responses/tutorial001_py39.py hl[18,22] *} /// note Keep in mind that you have to return the `JSONResponse` directly. /// /// info The `model` key is not part of OpenAPI.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 8.9K bytes - Viewed (0)