Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 980 for tutorial004_py310 (0.08 seconds)

  1. docs/ko/docs/tutorial/body-nested-models.md

    모든 것이 임의의 깊이로 중첩됩니다.
    
    ### 서브모델 정의 { #define-a-submodel }
    
    예를 들어, `Image` 모델을 정의할 수 있습니다:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    
    ### 서브모델을 타입으로 사용 { #use-the-submodel-as-a-type }
    
    그리고 이를 어트리뷰트의 타입으로 사용할 수 있습니다:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    이는 **FastAPI**가 다음과 유사한 본문을 기대한다는 것을 의미합니다:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/body-nested-models.md

    而且可以任意深度巢狀。
    
    ### 定義子模型 { #define-a-submodel }
    
    例如,我們可以定義一個 `Image` 模型:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    
    ### 將子模型作為型別使用 { #use-the-submodel-as-a-type }
    
    然後把它作為某個屬性的型別使用:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    這表示 **FastAPI** 會期望一個類似如下的本文:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. docs/ja/docs/advanced/testing-events.md

    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    より詳しい内容は、[公式 Starlette ドキュメントの「テストでの lifespan の実行」](https://www.starlette.dev/lifespan/#running-lifespan-in-tests) を参照してください。
    
    非推奨の `startup` および `shutdown` イベントについては、次のように `TestClient` を使用できます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 15:24:30 GMT 2026
    - 724 bytes
    - Click Count (0)
  4. docs/ko/docs/tutorial/metadata.md

    {* ../../docs_src/metadata/tutorial004_py310.py hl[3:16,18] *}
    
    설명 안에 마크다운을 사용할 수 있다는 점에 유의하세요. 예를 들어 "login"은 굵게(**login**) 표시되고, "fancy"는 기울임꼴(_fancy_)로 표시됩니다.
    
    /// tip | 팁
    
    사용 중인 모든 태그에 메타데이터를 추가할 필요는 없습니다.
    
    ///
    
    ### 태그 사용 { #use-your-tags }
    
    `tags` 매개변수를 *경로 처리* (및 `APIRouter`)와 함께 사용하여 이를 서로 다른 태그에 할당하세요:
    
    {* ../../docs_src/metadata/tutorial004_py310.py hl[21,26] *}
    
    /// info | 정보
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  5. docs/zh/docs/tutorial/metadata.md

    创建标签元数据并把它传递给 `openapi_tags` 参数:
    
    {* ../../docs_src/metadata/tutorial004_py310.py hl[3:16,18] *}
    
    注意你可以在描述内使用 Markdown,例如「login」会显示为粗体(**login**)以及「fancy」会显示为斜体(_fancy_)。
    
    /// tip | 提示
    
    不必为你使用的所有标签都添加元数据。
    
    ///
    
    ### 使用你的标签 { #use-your-tags }
    
    将 `tags` 参数和*路径操作*(以及 `APIRouter`)一起使用,将其分配给不同的标签:
    
    {* ../../docs_src/metadata/tutorial004_py310.py hl[21,26] *}
    
    /// info | 信息
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/path-operation-configuration.md

    {* ../../docs_src/path_operation_configuration/tutorial004_py310.py hl[17:25] *}
    
    It will be used in the interactive docs:
    
    <img src="/img/tutorial/path-operation-configuration/image02.png">
    
    ## Response description { #response-description }
    
    You can specify the response description with the parameter `response_description`:
    
    {* ../../docs_src/path_operation_configuration/tutorial005_py310.py hl[18] *}
    
    /// info
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  7. docs/ja/docs/tutorial/metadata.md

    {* ../../docs_src/metadata/tutorial004_py310.py hl[3:16,18] *}
    
    説明の中でMarkdownを使用できることに注意してください。たとえば「login」は太字 (**login**) で表示され、「fancy」は斜体 (_fancy_) で表示されます。
    
    /// tip | 豆知識
    
    使用するすべてのタグにメタデータを追加する必要はありません。
    
    ///
    
    ### タグの使用 { #use-your-tags }
    
    *path operation*(および `APIRouter`)の `tags` パラメータを使用して、それらを異なるタグに割り当てます:
    
    {* ../../docs_src/metadata/tutorial004_py310.py hl[21,26] *}
    
    /// info | 情報
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/body-nested-models.md

    上述这些都可以任意的嵌套。
    
    ### 定义子模型 { #define-a-submodel }
    
    例如,我们可以定义一个 `Image` 模型:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    
    ### 将子模型用作类型 { #use-the-submodel-as-a-type }
    
    然后我们可以将其用作一个属性的类型:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    这意味着 **FastAPI** 将期望类似于以下内容的请求体:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/handling-errors.md

    The exception handler will receive a `Request` and the exception.
    
    {* ../../docs_src/handling_errors/tutorial004_py310.py hl[2,14:19] *}
    
    Now, if you go to `/items/foo`, instead of getting the default JSON error with:
    
    ```JSON
    {
        "detail": [
            {
                "loc": [
                    "path",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/path-operation-configuration.md

    {* ../../docs_src/path_operation_configuration/tutorial004_py310.py hl[17:25] *}
    
    這會用於互動式文件:
    
    <img src="/img/tutorial/path-operation-configuration/image02.png">
    
    ## 回應描述 { #response-description }
    
    你可以用參數 `response_description` 指定回應的描述:
    
    {* ../../docs_src/path_operation_configuration/tutorial005_py310.py hl[18] *}
    
    /// info | 資訊
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
Back to Top