- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 877 for tutorial002 (0.09 sec)
-
docs/zh/docs/tutorial/metadata.md
```Python hl_lines="3-16 18" {!../../docs_src/metadata/tutorial004.py!} ``` 注意你可以在描述内使用 Markdown,例如「login」会显示为粗体(**login**)以及「fancy」会显示为斜体(_fancy_)。 /// tip | "提示" 不必为你使用的所有标签都添加元数据。 /// ### 使用你的标签 将 `tags` 参数和*路径操作*(以及 `APIRouter`)一起使用,将其分配给不同的标签: ```Python hl_lines="21 26" {!../../docs_src/metadata/tutorial004.py!} ``` /// info | "信息"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/extra-models.md
{!> ../../docs_src/extra_models/tutorial002_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="9 15-16 19-20 23-24" {!> ../../docs_src/extra_models/tutorial002.py!} ``` //// ## `Union` или `anyOf` Вы можете определить ответ как `Union` из двух типов. Это означает, что ответ должен соответствовать одному из них. Он будет определён в OpenAPI как `anyOf`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.5K bytes - Viewed (0) -
docs/fr/docs/tutorial/body-multiple-params.md
```Python hl_lines="20" {!> ../../docs_src/body_multiple_params/tutorial002_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="22" {!> ../../docs_src/body_multiple_params/tutorial002.py!} ``` //// Dans ce cas, **FastAPI** détectera qu'il y a plus d'un paramètre dans le body (chacun correspondant à un modèle Pydantic).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.5K bytes - Viewed (0) -
docs/pt/docs/tutorial/extra-models.md
//// tab | Python 3.8 and above ```Python hl_lines="9 15-16 19-20 23-24" {!> ../../docs_src/extra_models/tutorial002.py!} ``` //// //// tab | Python 3.10 and above ```Python hl_lines="7 13-14 17-18 21-22" {!> ../../docs_src/extra_models/tutorial002_py310.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/de/docs/tutorial/path-params-numeric-validations.md
//// tab | Python 3.8 nicht annotiert /// tip | "Tipp" Bevorzugen Sie die `Annotated`-Version, falls möglich. /// ```Python hl_lines="7" {!> ../../docs_src/path_params_numeric_validations/tutorial002.py!} ``` //// Aber bedenken Sie, dass Sie dieses Problem nicht haben, wenn Sie `Annotated` verwenden, da Sie nicht die Funktions-Parameter-Defaultwerte für `Query()` oder `Path()` verwenden.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.1K bytes - Viewed (0) -
docs/uk/docs/python-types.md
```Python hl_lines="1" {!../../docs_src/python_types/tutorial003.py!} ``` Оскільки редактор знає типи змінних, ви не тільки отримаєте автозаповнення, ви також отримаєте перевірку помилок: <img src="/img/python-types/image04.png"> Тепер ви знаєте, щоб виправити це, вам потрібно перетворити `age` у строку з допомогою `str(age)`: ```Python hl_lines="2" {!../../docs_src/python_types/tutorial004.py!} ``` ## Оголошення типів
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.5K bytes - Viewed (0) -
docs/en/docs/tutorial/cookie-param-models.md
``` //// //// tab | Python 3.8+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. /// ```Python hl_lines="10" {!> ../../docs_src/cookie_param_models/tutorial002.py!} ``` //// If a client tries to send some **extra cookies**, they will receive an **error** response.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4K bytes - Viewed (0) -
docs/em/docs/tutorial/background-tasks.md
& ✍ 🛠️ 🚫 ⚙️ `async` & `await`, 👥 🔬 🔢 ⏮️ 😐 `def`: ```Python hl_lines="6-9" {!../../docs_src/background_tasks/tutorial001.py!} ``` ## 🚮 🖥 📋 🔘 👆 *➡ 🛠️ 🔢*, 🚶♀️ 👆 📋 🔢 *🖥 📋* 🎚 ⏮️ 👩🔬 `.add_task()`: ```Python hl_lines="14" {!../../docs_src/background_tasks/tutorial001.py!} ``` `.add_task()` 📨 ❌: * 📋 🔢 🏃 🖥 (`write_notification`). * 🙆 🔁 ❌ 👈 🔜 🚶♀️ 📋 🔢 ✔ (`email`).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial002.py
import pytest from fastapi.testclient import TestClient from fastapi.websockets import WebSocketDisconnect from docs_src.websockets.tutorial002 import app def test_main(): client = TestClient(app) response = client.get("/") assert response.status_code == 200, response.text assert b"<!DOCTYPE html>" in response.content def test_websocket_with_cookie(): client = TestClient(app, cookies={"session": "fakesession"})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Nov 13 14:26:09 UTC 2022 - 3.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/metadata.md
Mas você pode configurá-lo com o parâmetro `openapi_url`. Por exemplo, para defini-lo para ser servido em `/api/v1/openapi.json`: ```Python hl_lines="3" {!../../docs_src/metadata/tutorial002.py!} ``` Se você quiser desativar completamente o esquema OpenAPI, pode definir `openapi_url=None`, o que também desativará as interfaces de documentação que o utilizam. ## URLs da Documentação
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 29 10:36:14 UTC 2024 - 6.1K bytes - Viewed (0)