- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 871 for tutorial001 (0.1 sec)
-
docs/em/docs/advanced/templates.md
* 📣 `Request` 🔢 *➡ 🛠️* 👈 🔜 📨 📄. * ⚙️ `templates` 👆 ✍ ✍ & 📨 `TemplateResponse`, 🚶♀️ `request` 1️⃣ 🔑-💲 👫 Jinja2️⃣ "🔑". ```Python hl_lines="4 11 15-18" {!../../docs_src/templates/tutorial001.py!} ``` /// note 👀 👈 👆 ✔️ 🚶♀️ `request` 🍕 🔑-💲 👫 🔑 Jinja2️⃣. , 👆 ✔️ 📣 ⚫️ 👆 *➡ 🛠️*. /// /// tip 📣 `response_class=HTMLResponse` 🩺 🎚 🔜 💪 💭 👈 📨 🔜 🕸. ///
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.1K bytes - Viewed (0) -
docs/em/docs/advanced/using-request-directly.md
✋️ 📤 🎯 💼 🌐❔ ⚫️ ⚠ 🤚 `Request` 🎚. ## ⚙️ `Request` 🎚 🔗 ➡️ 🌈 👆 💚 🤚 👩💻 📢 📢/🦠 🔘 👆 *➡ 🛠️ 🔢*. 👈 👆 💪 🔐 📨 🔗. ```Python hl_lines="1 7-8" {!../../docs_src/using_request_directly/tutorial001.py!} ``` 📣 *➡ 🛠️ 🔢* 🔢 ⏮️ 🆎 ➖ `Request` **FastAPI** 🔜 💭 🚶♀️ `Request` 👈 🔢. /// tip 🗒 👈 👉 💼, 👥 📣 ➡ 🔢 ⤴️ 📨 🔢. , ➡ 🔢 🔜 ⚗, ✔, 🗜 ✔ 🆎 & ✍ ⏮️ 🗄.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.8K bytes - Viewed (0) -
tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py
@pytest.fixture(scope="module") def client(): static_dir: Path = Path(os.getcwd()) / "static" print(static_dir) static_dir.mkdir(exist_ok=True) from docs_src.custom_docs_ui.tutorial001 import app with TestClient(app) as client: yield client static_dir.rmdir() def test_swagger_ui_html(client: TestClient): response = client.get("/docs")
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu May 23 22:59:02 UTC 2024 - 1.3K bytes - Viewed (0) -
docs/ru/docs/tutorial/encoder.md
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/de/docs/tutorial/static-files.md
## `StaticFiles` verwenden * Importieren Sie `StaticFiles`. * „Mounten“ Sie eine `StaticFiles()`-Instanz in einem bestimmten Pfad. ```Python hl_lines="2 6" {!../../docs_src/static_files/tutorial001.py!} ``` /// note | "Technische Details" Sie könnten auch `from starlette.staticfiles import StaticFiles` verwenden.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/zh/docs/advanced/response-cookies.md
你还可以在直接响应`Response`时直接创建cookies。 你可以参考[Return a Response Directly](response-directly.md){.internal-link target=_blank}来创建response 然后设置Cookies,并返回: ```Python hl_lines="10-12" {!../../docs_src/response_cookies/tutorial001.py!} ``` /// tip 需要注意,如果你直接反馈一个response对象,而不是使用`Response`入参,FastAPI则会直接反馈你封装的response对象。 所以你需要确保你响应数据类型的正确性,如:你可以使用`JSONResponse`来兼容JSON的场景。 同时,你也应当仅反馈通过`response_model`过滤过的数据。 ///
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.1K bytes - Viewed (0) -
docs/pt/docs/tutorial/request-form-models.md
``` //// //// tab | Python 3.8+ non-Annotated /// tip | "Dica" Prefira utilizar a versão `Annotated` se possível. /// ```Python hl_lines="7-9 13" {!> ../../docs_src/request_form_models/tutorial001.py!} ``` //// O **FastAPI** irá **extrair** as informações para **cada campo** dos **dados do formulário** na requisição e dar para você o modelo Pydantic que você definiu. ## Confira os Documentos
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.1K bytes - Viewed (0) -
docs/ja/docs/tutorial/metadata.md
* **バージョン**: APIのバージョン。例: `v2` または `2.5.0`。 *たとえば、以前のバージョンのアプリケーションがあり、OpenAPIも使用している場合に便利です。 これらを設定するには、パラメータ `title`、`description`、`version` を使用します: ```Python hl_lines="4-6" {!../../docs_src/metadata/tutorial001.py!} ``` この設定では、自動APIドキュメントは以下の様になります: <img src="/img/tutorial/metadata/image01.png"> ## タグのためのメタデータ さらに、パラメータ `openapi_tags` を使うと、path operations をグループ分けするための複数のタグに関するメタデータを追加できます。
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.6K bytes - Viewed (0) -
docs/pt/docs/advanced/additional-responses.md
Por exemplo, para declarar um outro retorno com o status code `404` e um modelo do Pydantic chamado `Message`, você pode escrever: ```Python hl_lines="18 22" {!../../docs_src/additional_responses/tutorial001.py!} ``` /// note | "Nota" Lembre-se que você deve retornar o `JSONResponse` diretamente. /// /// info | "Informação" A chave `model` não é parte do OpenAPI.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/cookie-param-models.md
``` //// //// tab | Python 3.8+ non-Annotated /// tip | Dica Prefira utilizar a versão `Annotated` se possível. /// ```Python hl_lines="9-12 16" {!> ../../docs_src/cookie_param_models/tutorial001.py!} ``` //// O **FastAPI** irá **extrair** os dados para **cada campo** dos **cookies** recebidos na requisição e lhe fornecer o modelo Pydantic que você definiu. ## Verifique os Documentos
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Mon Oct 07 20:18:07 UTC 2024 - 4.4K bytes - Viewed (0)