Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 630 for hl (0.02 sec)

  1. docs/zh/docs/advanced/additional-responses.md

    每个响应字典都可以有一个关键模型,其中包含一个 `Pydantic` 模型,就像 `response_model` 一样。
    
    **FastAPI**将采用该模型,生成其`JSON Schema`并将其包含在`OpenAPI`中的正确位置。
    
    例如,要声明另一个具有状态码 `404` 和`Pydantic`模型 `Message` 的响应,可以写:
    {* ../../docs_src/additional_responses/tutorial001.py hl[18,22] *}
    
    /// note
    
    请记住,您必须直接返回 `JSONResponse` 。
    
    ///
    
    /// info
    
    `model` 密钥不是OpenAPI的一部分。
    **FastAPI**将从那里获取`Pydantic`模型,生成` JSON Schema` ,并将其放在正确的位置。
    - 正确的位置是:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:29:26 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. docs/em/docs/advanced/sub-applications.md

    {* ../../docs_src/sub_applications/tutorial001.py hl[3,6:8] *}
    
    ### 🎧-🈸
    
    ⤴️, ✍ 👆 🎧-🈸, & 🚮 *➡ 🛠️*.
    
    👉 🎧-🈸 ➕1️⃣ 🐩 FastAPI 🈸, ✋️ 👉 1️⃣ 👈 🔜 "🗻":
    
    {* ../../docs_src/sub_applications/tutorial001.py hl[11,14:16] *}
    
    ### 🗻 🎧-🈸
    
    👆 🔝-🎚 🈸, `app`, 🗻 🎧-🈸, `subapi`.
    
    👉 💼, ⚫️ 🔜 📌 ➡ `/subapi`:
    
    {* ../../docs_src/sub_applications/tutorial001.py hl[11,19] *}
    
    ### ✅ 🏧 🛠️ 🩺
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. docs/de/docs/how-to/configure-swagger-ui.md

    <img src="/img/tutorial/extending-openapi/image02.png">
    
    Sie können sie jedoch deaktivieren, indem Sie `syntaxHighlight` auf `False` setzen:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001.py hl[3] *}
    
    ... und dann zeigt die Swagger-Oberfläche die Syntaxhervorhebung nicht mehr an:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## Das Theme ändern
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 10:02:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. docs/ko/docs/python-types.md

    ## 더 큰 동기부여
    
    아래 함수를 보면, 이미 타입 힌트가 적용되어 있는 걸 볼 수 있습니다:
    
    {* ../../docs_src/python_types/tutorial003.py hl[1] *}
    
    
    편집기가 변수의 타입을 알고 있기 때문에, 자동완성 뿐 아니라 에러도 확인할 수 있습니다:
    
    <img src="/img/python-types/image04.png">
    
    이제 고쳐야하는 걸 알기 때문에, `age`를 `str(age)`과 같이 문자열로 바꾸게 됩니다:
    
    {* ../../docs_src/python_types/tutorial004.py hl[2] *}
    
    
    ## 타입 선언
    
    방금 함수의 매개변수로써 타입 힌트를 선언하는 주요 장소를 보았습니다.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/dependencies/sub-dependencies.md

    ## 🥇 🔗 "☑"
    
    👆 💪 ✍ 🥇 🔗 ("☑") 💖:
    
    {* ../../docs_src/dependencies/tutorial005.py hl[8:9] *}
    
    ⚫️ 📣 📦 🔢 🔢 `q` `str`, &amp; ⤴️ ⚫️ 📨 ⚫️.
    
    👉 🙅 (🚫 📶 ⚠), ✋️ 🔜 ℹ 👥 🎯 🔛 ❔ 🎧-🔗 👷.
    
    ## 🥈 🔗, "☑" &amp; "⚓️"
    
    ⤴️ 👆 💪 ✍ ➕1️⃣ 🔗 🔢 ("☑") 👈 🎏 🕰 📣 🔗 🚮 👍 (⚫️ "⚓️" 💁‍♂️):
    
    {* ../../docs_src/dependencies/tutorial005.py hl[13] *}
    
    ➡️ 🎯 🔛 🔢 📣:
    
    * ✋️ 👉 🔢 🔗 ("☑") ⚫️, ⚫️ 📣 ➕1️⃣ 🔗 (⚫️ "🪀" 🔛 🕳 🙆).
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/header-param-models.md

    Declare the **header parameters** that you need in a **Pydantic model**, and then declare the parameter as `Header`:
    
    {* ../../docs_src/header_param_models/tutorial001_an_py310.py hl[9:14,18] *}
    
    **FastAPI** will **extract** the data for **each field** from the **headers** in the request and give you the Pydantic model you defined.
    
    ## Check the Docs { #check-the-docs }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/schema-extra-example.md

    {* ../../docs_src/schema_extra_example/tutorial001.py hl[15:23] *}
    
    👈 ➕ ℹ 🔜 🚮-🔢 **🎻 🔗** 👈 🏷, &amp; ⚫️ 🔜 ⚙️ 🛠️ 🩺.
    
    /// tip
    
    👆 💪 ⚙️ 🎏 ⚒ ↔ 🎻 🔗 &amp; 🚮 👆 👍 🛃 ➕ ℹ.
    
    🖼 👆 💪 ⚙️ ⚫️ 🚮 🗃 🕸 👩‍💻 🔢, ♒️.
    
    ///
    
    ## `Field` 🌖 ❌
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. docs/pt/docs/how-to/separate-openapi-schemas.md

    Digamos que você tenha um modelo Pydantic com valores padrão, como este:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *}
    
    ### Modelo para Entrada
    
    Se você usar esse modelo como entrada, como aqui:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *}
    
    ... então o campo `description` não será obrigatório. Porque ele tem um valor padrão de `None`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/advanced-dependencies.md

    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[9] *}
    
    En este caso, **FastAPI** nunca tocará ni se preocupará por `__init__`, lo usaremos directamente en nuestro código.
    
    ## Crear una instance
    
    Podríamos crear una instance de esta clase con:
    
    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[18] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. docs/uk/docs/tutorial/response-status-code.md

    Розглянемо ще раз попередній приклад:
    
    {* ../../docs_src/response_status_code/tutorial001.py hl[6] *}
    
    `201` - це код статусу для "Created" (створено).
    
    Але Вам не потрібно запам'ятовувати, що означає кожен із цих кодів.
    
    Ви можете використовувати зручні змінні з `fastapi.status`
    
    {* ../../docs_src/response_status_code/tutorial002.py hl[1,6] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Wed Mar 19 17:04:17 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top