- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 924 for docs_src (0.09 sec)
-
docs/ja/docs/tutorial/testing.md
また、**FastAPI** アプリケーションは、複数のファイル/モジュールなどで構成されている場合もあります。 ### **FastAPI** アプリファイル **FastAPI** アプリに `main.py` ファイルがあるとします: {* ../../docs_src/app_testing/main.py *} ### テストファイル 次に、テストを含む `test_main.py` ファイルを作成し、`main` モジュール (`main.py`) から `app` をインポートします: {* ../../docs_src/app_testing/test_main.py *} ## テスト: 例の拡張 次に、この例を拡張し、詳細を追加して、さまざまなパーツをテストする方法を確認しましょう。 ### 拡張版 **FastAPI** アプリファイルRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 5.6K bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial005.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 271 bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial007.py
from docs_src.python_types.tutorial007_py39 import process_items def test_process_items(): items_t = (1, 2, "foo") items_s = {b"a", b"b", b"c"}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 220 bytes - Viewed (0) -
docs/es/docs/tutorial/request-files.md
/// ## Importar `File` { #import-file } Importa `File` y `UploadFile` desde `fastapi`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *} ## Definir Parámetros `File` { #define-file-parameters } Crea parámetros de archivo de la misma manera que lo harías para `Body` o `Form`: {* ../../docs_src/request_files/tutorial001_an_py39.py hl[9] *} /// info | InformaciónRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 7.9K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-files.md
例如: `pip install python-multipart`。 /// ## 导入 `File` 从 `fastapi` 导入 `File` 和 `UploadFile`: {* ../../docs_src/request_files/tutorial001.py hl[1] *} ## 定义 `File` 参数 创建文件(`File`)参数的方式与 `Body` 和 `Form` 一样: {* ../../docs_src/request_files/tutorial001.py hl[7] *} /// info | 说明 `File` 是直接继承自 `Form` 的类。 注意,从 `fastapi` 导入的 `Query`、`Path`、`File` 等项,实际上是返回特定类的函数。 ///Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.3K bytes - Viewed (0) -
docs/ja/docs/tutorial/path-operation-configuration.md
`tags`パラメータを`str`の`list`(通常は1つの`str`)と一緒に渡すと、*path operation*にタグを追加できます: {* ../../docs_src/path_operation_configuration/tutorial002.py hl[17,22,27] *} これらはOpenAPIスキーマに追加され、自動ドキュメントのインターフェースで使用されます: <img src="https://fastapi.tiangolo.com/img/tutorial/path-operation-configuration/image01.png"> ## 概要と説明 `summary`と`description`を追加できます: {* ../../docs_src/path_operation_configuration/tutorial003.py hl[20:21] *} ## docstringを用いた説明Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.2K bytes - Viewed (0) -
docs/ko/docs/tutorial/security/get-current-user.md
{* ../../docs_src/security/tutorial002.py hl[25] *} ## 유저 가져오기 `get_current_user`는 토큰을 `str`로 취하고 Pydantic `User` 모델을 반환하는 우리가 만든 (가짜) 유틸리티 함수를 사용합니다. {* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *} ## 현재 유저 주입하기 이제 *경로 작동*에서 `get_current_user`와 동일한 `Depends`를 사용할 수 있습니다. {* ../../docs_src/security/tutorial002.py hl[31] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.7K bytes - Viewed (0) -
docs/ru/docs/advanced/generate-clients.md
Мы можем скачать OpenAPI JSON в файл `openapi.json`, а затем **убрать этот префикс‑тег** таким скриптом: {* ../../docs_src/generate_clients/tutorial004_py39.py *} //// tab | Node.js ```Javascript {!> ../../docs_src/generate_clients/tutorial004.js!} ``` ////Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 15.9K bytes - Viewed (0) -
docs/en/docs/tutorial/schema-extra-example.md
## Extra JSON Schema data in Pydantic models { #extra-json-schema-data-in-pydantic-models } You can declare `examples` for a Pydantic model that will be added to the generated JSON Schema. {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *} That extra info will be added as-is to the output **JSON Schema** for that model, and it will be used in the API docs.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 8.9K bytes - Viewed (0) -
docs/zh/docs/advanced/response-cookies.md
# 响应Cookies ## 使用 `Response` 参数 你可以在 *路径函数* 中定义一个类型为 `Response`的参数,这样你就可以在这个临时响应对象中设置cookie了。 {* ../../docs_src/response_cookies/tutorial002.py hl[1,8:9] *} 而且你还可以根据你的需要响应不同的对象,比如常用的 `dict`,数据库model等。 如果你定义了 `response_model`,程序会自动根据`response_model`来过滤和转换你响应的对象。 **FastAPI** 会使用这个 *临时* 响应对象去装在这些cookies信息 (同样还有headers和状态码等信息), 最终会将这些信息和通过`response_model`转化过的数据合并到最终的响应里。 你也可以在depend中定义`Response`参数,并设置cookie和header。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 2.1K bytes - Viewed (0)