Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for 20 (0.15 sec)

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

    Et une réponse avec un code HTTP `200` qui utilise votre `response_model`, mais inclut un `example` personnalisé :
    
    ```Python hl_lines="20-31"
    {!../../../docs_src/additional_responses/tutorial003.py!}
    ```
    
    Tout sera combiné et inclus dans votre OpenAPI, et affiché dans la documentation de l'API :
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/additional-responses.md

    **FastAPI**将保留来自 `responses` 的附加信息,并将其与模型中的JSON Schema结合起来。
    
    例如,您可以使用状态码 `404` 声明响应,该响应使用`Pydantic`模型并具有自定义的` description` 。
    
    以及一个状态码为 `200` 的响应,它使用您的 `response_model` ,但包含自定义的 `example` :
    
    ```Python hl_lines="20-31"
    {!../../../docs_src/additional_responses/tutorial003.py!}
    ```
    
    所有这些都将被合并并包含在您的OpenAPI中,并在API文档中显示:
    
    ## 联合预定义响应和自定义响应
    
    您可能希望有一些应用于许多路径操作的预定义响应,但是你想将不同的路径和自定义的相应组合在一块。
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 09 15:53:39 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/additional-responses.md

    Und eine Response mit dem Statuscode `200`, die Ihr `response_model` verwendet, aber ein benutzerdefiniertes Beispiel (`example`) enthält:
    
    ```Python hl_lines="20-31"
    {!../../../docs_src/additional_responses/tutorial003.py!}
    ```
    
    Es wird alles kombiniert und in Ihre OpenAPI eingebunden und in der API-Dokumentation angezeigt:
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:19:26 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/additional-responses.md

    And a response with a status code `200` that uses your `response_model`, but includes a custom `example`:
    
    ```Python hl_lines="20-31"
    {!../../../docs_src/additional_responses/tutorial003.py!}
    ```
    
    It will all be combined and included in your OpenAPI, and shown in the API docs:
    
    <img src="/img/tutorial/additional-responses/image01.png">
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/additional-responses.md

    🖼, 👆 💪 📣 📨 ⏮️ 👔 📟 `404` 👈 ⚙️ Pydantic 🏷 &amp; ✔️ 🛃 `description`.
    
    &amp; 📨 ⏮️ 👔 📟 `200` 👈 ⚙️ 👆 `response_model`, ✋️ 🔌 🛃 `example`:
    
    ```Python hl_lines="20-31"
    {!../../../docs_src/additional_responses/tutorial003.py!}
    ```
    
    ⚫️ 🔜 🌐 🌀 &amp; 🔌 👆 🗄, &amp; 🎦 🛠️ 🩺:
    
    <img src="/img/tutorial/additional-responses/image01.png">
    
    ## 🌀 🔢 📨 &amp; 🛃 🕐
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 7.9K bytes
    - Viewed (0)
Back to top