Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1161 - 1170 of 1,658 for py$ (0.01 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/ja/docs/advanced/path-operation-advanced-configuration.md

    {* ../../docs_src/path_operation_advanced_configuration/tutorial001.py hl[6] *}
    
    ### *path operation関数* の名前をoperationIdとして使用する
    
    APIの関数名を `operationId` として利用したい場合、すべてのAPIの関数をイテレーションし、各 *path operation* の `operationId` を `APIRoute.name` で上書きすれば可能です。
    
    そうする場合は、すべての *path operation* を追加した後に行う必要があります。
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002.py hl[2,12:21,24] *}
    
    /// tip | 豆知識
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  2. docs/zh/docs/advanced/sub-applications.md

    {* ../../docs_src/sub_applications/tutorial001.py hl[3,6:8] *}
    
    ### 子应用
    
    接下来,创建子应用及其*路径操作*。
    
    子应用只是另一个标准 FastAPI 应用,但这个应用是被**挂载**的应用:
    
    {* ../../docs_src/sub_applications/tutorial001.py hl[11,14:16] *}
    
    ### 挂载子应用
    
    在顶层应用 `app` 中,挂载子应用 `subapi`。
    
    本例的子应用挂载在 `/subapi` 路径下:
    
    {* ../../docs_src/sub_applications/tutorial001.py hl[11,19] *}
    
    ### 查看文档
    
    如果主文件是 `main.py`,则用以下 `uvicorn` 命令运行主应用:
    
    <div class="termy">
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  3. docs/zh/docs/how-to/configure-swagger-ui.md

    但是你可以通过设置 `syntaxHighlight` 为 `False` 来禁用 Swagger UI 中的语法高亮:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001.py hl[3] *}
    
    ...在此之后,Swagger UI 将不会高亮代码:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## 改变主题
    
    同样地,你也可以通过设置键 `"syntaxHighlight.theme"` 来设置语法高亮主题(注意中间有一个点):
    
    {* ../../docs_src/configure_swagger_ui/tutorial002.py hl[3] *}
    
    这个配置会改变语法高亮主题:
    
    <img src="/img/tutorial/extending-openapi/image04.png">
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/header-params.md

    ## 导入 `Header`
    
    首先,导入 `Header`:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[3] *}
    
    ## 声明 `Header` 参数
    
    然后,使用和 `Path`、`Query`、`Cookie` 一样的结构定义 header 参数。
    
    第一个值是默认值,还可以传递所有验证参数或注释参数:
    
    {* ../../docs_src/header_params/tutorial001_an_py310.py hl[9] *}
    
    /// note | 技术细节
    
    `Header` 是 `Path`、`Query`、`Cookie` 的**兄弟类**,都继承自共用的 `Param` 类。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  5. docs/pt/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[8,13] *}
    
    ### Levantar exceções { #raise-exceptions }
    
    Essas dependências podem `raise` exceções, da mesma forma que dependências comuns:
    
    {* ../../docs_src/dependencies/tutorial006_an_py39.py hl[10,15] *}
    
    ### Valores de retorno { #return-values }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  6. docs/es/docs/advanced/path-operation-advanced-configuration.md

    //// tab | Pydantic v2
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial007_py39.py hl[15:20, 22] *}
    
    ////
    
    //// tab | Pydantic v1
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial007_pv1_py39.py hl[15:20, 22] *}
    
    ////
    
    /// info | Información
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  7. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    //// tab | Pydantic v2
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial007_py39.py hl[15:20, 22] *}
    
    ////
    
    //// tab | Pydantic v1
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial007_pv1_py39.py hl[15:20, 22] *}
    
    ////
    
    /// info | Informação
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  8. docs/ru/docs/tutorial/handling-errors.md

    Для возврата клиенту HTTP-ответов с ошибками используется `HTTPException`.
    
    ### Импортируйте `HTTPException` { #import-httpexception }
    
    {* ../../docs_src/handling_errors/tutorial001_py39.py hl[1] *}
    
    ### Вызовите `HTTPException` в своем коде { #raise-an-httpexception-in-your-code }
    
    `HTTPException` - это обычное исключение Python с дополнительными данными, актуальными для API.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  9. docs/ru/docs/advanced/advanced-dependencies.md

    Это могло бы выглядеть так:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py *}
    
    Код после `yield`, автоматическое закрытие `Session` в:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[19:21] *}
    
    …будет выполнен после того, как ответ закончит отправку медленных данных:
    
    {* ../../docs_src/dependencies/tutorial013_an_py310.py ln[30:38] hl[31:33] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 21:25:03 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  10. docs/en/docs/how-to/extending-openapi.md

    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[1,4,7:9] *}
    
    ### Generate the OpenAPI schema { #generate-the-openapi-schema }
    
    Then, use the same utility function to generate the OpenAPI schema, inside a `custom_openapi()` function:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[2,15:21] *}
    
    ### Modify the OpenAPI schema { #modify-the-openapi-schema }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.4K bytes
    - Click Count (0)
Back to Top