Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 237 for warning (0.15 sec)

  1. docs/zh/docs/tutorial/request-files.md

        编码和表单字段详见 <a href="https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><abbr title="Mozilla Developer Network">MDN</abbr> Web 文档的 <code>POST </code></a> 小节。
    
    !!! warning "警告"
    
        可在一个*路径操作*中声明多个 `File` 和 `Form` 参数,但不能同时声明要接收 JSON 的 `Body` 字段。因为此时请求体的编码是 `multipart/form-data`,不是 `application/json`。
    
        这不是 **FastAPI** 的问题,而是 HTTP 协议的规定。
    
    ## 可选文件上传
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/extending-openapi.md

    # 扩展 OpenAPI
    
    !!! warning "警告"
    
        本章介绍的功能较难,您可以跳过阅读。
    
        如果您刚开始学习**用户指南**,最好跳过本章。
    
        如果您确定要修改 OpenAPI 概图,请继续阅读。
    
    某些情况下,我们需要修改 OpenAPI 概图。
    
    本章介绍如何修改 OpenAPI 概图。
    
    ## 常规流程
    
    常规(默认)流程如下。
    
    `FastAPI` 应用(实例)提供了返回 OpenAPI 概图的 `.openapi()` 方法。
    
    作为应用对象创建的组成部分,要注册 `/openapi.json` (或其它为 `openapi_url` 设置的任意内容)*路径操作*。
    
    它只返回包含应用的 `.openapi()` 方法操作结果的 JSON 响应。
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:46:12 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/sql-databases.md

    ```
    
    !!! tip
        SQLAlchemy 模型`User`包含一个`hashed_password`,它应该是一个包含散列的安全密码。
    
        但由于 API 客户端提供的是原始密码,因此您需要将其提取并在应用程序中生成散列密码。
    
        然后将hashed_password参数与要保存的值一起传递。
    
    !!! warning
        此示例不安全,密码未经过哈希处理。
    
        在现实生活中的应用程序中,您需要对密码进行哈希处理,并且永远不要以明文形式保存它们。
    
        有关更多详细信息,请返回教程中的安全部分。
    
        在这里,我们只关注数据库的工具和机制。
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/request-files.md

    !!! warning "Внимание"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

    🕐❔ `with` 🍫 🏁, ⚫️ ⚒ 💭 🔐 📁, 🚥 📤 ⚠.
    
    🕐❔ 👆 ✍ 🔗 ⏮️ `yield`, **FastAPI** 🔜 🔘 🗜 ⚫️ 🔑 👨‍💼, &amp; 🌀 ⚫️ ⏮️ 🎏 🔗 🧰.
    
    ### ⚙️ 🔑 👨‍💼 🔗 ⏮️ `yield`
    
    !!! warning
        👉, 🌅 ⚖️ 🌘, "🏧" 💭.
    
        🚥 👆 ▶️ ⏮️ **FastAPI** 👆 💪 💚 🚶 ⚫️ 🔜.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/behind-a-proxy.md

    Genau so, wie wir es wollten. ✔️
    
    Dies liegt daran, dass FastAPI diesen `root_path` verwendet, um den Default-`server` in OpenAPI mit der von `root_path` bereitgestellten URL zu erstellen.
    
    ## Zusätzliche Server
    
    !!! warning "Achtung"
        Dies ist ein fortgeschrittener Anwendungsfall. Überspringen Sie das gerne.
    
    Standardmäßig erstellt **FastAPI** einen `server` im OpenAPI-Schema mit der URL für den `root_path`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:30:07 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/body-fields.md

    === "Python 3.8+ non-Annotated"
    
        !!! tip
            Варто користуватись `Annotated` версією, якщо це можливо.
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001.py!}
        ```
    
    !!! warning
        Зверніть увагу, що `Field` імпортується прямо з `pydantic`, а не з `fastapi`, як всі інші (`Query`, `Path`, `Body` тощо).
    
    ## Оголошення атрибутів моделі
    
    Ви можете використовувати `Field` з атрибутами моделі:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 15:25:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/path-operation-advanced-configuration.md

    # 路径操作的高级配置
    
    ## OpenAPI 的 operationId
    
    !!! warning
        如果你并非 OpenAPI 的「专家」,你可能不需要这部分内容。
    
    你可以在路径操作中通过参数 `operation_id` 设置要使用的 OpenAPI `operationId`。
    
    务必确保每个操作路径的 `operation_id` 都是唯一的。
    
    ```Python hl_lines="6"
    {!../../../docs_src/path_operation_advanced_configuration/tutorial001.py!}
    ```
    
    ### 使用 *路径操作函数* 的函数名作为 operationId
    
    如果你想用你的 API 的函数名作为 `operationId` 的名字,你可以遍历一遍 API 的函数名,然后使用他们的 `APIRoute.name` 重写每个 *路径操作* 的 `operation_id`。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Nov 25 17:11:59 GMT 2020
    - 1.9K bytes
    - Viewed (0)
  9. docs/pt/docs/contributing.md

    Então você poderá "servir" eles com o comando `serve`:
    
    <div class="termy">
    
    ```console
    // Use o comando "serve" após rodar "build-all"
    $ python ./scripts/docs.py serve
    
    Warning: this is a very simple server. For development, use mkdocs serve instead.
    This is here only to preview a site with translations already built.
    Make sure you run the build-all command first.
    Serving at: http://127.0.0.1:8008
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jun 11 21:38:15 GMT 2023
    - 14.9K bytes
    - Viewed (0)
  10. docs/pt/docs/async.md

    * **Machine Learning**: Normalmente exige muita multiplicação de matrizes e vetores. Pense numa grande folha de papel com números e multiplicando todos eles juntos e ao mesmo tempo.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 22.2K bytes
    - Viewed (0)
Back to top