- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for 19 (0.17 sec)
-
docs/fr/docs/advanced/additional-responses.md
Par exemple, vous pouvez ajouter un type de média supplémentaire `image/png`, en déclarant que votre *opération de chemin* peut renvoyer un objet JSON (avec le type de média `application/json`) ou une image PNG : ```Python hl_lines="19-24 28" {!../../../docs_src/additional_responses/tutorial002.py!} ``` !!! note "Remarque" Notez que vous devez retourner l'image en utilisant directement un `FileResponse`. !!! info
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) -
docs/zh/docs/advanced/additional-responses.md
} } } ``` ## 主响应的其他媒体类型 您可以使用相同的 `responses` 参数为相同的主响应添加不同的媒体类型。 例如,您可以添加一个额外的媒体类型` image/png` ,声明您的路径操作可以返回JSON对象(媒体类型 `application/json` )或PNG图像: ```Python hl_lines="19-24 28" {!../../../docs_src/additional_responses/tutorial002.py!} ``` !!! Note - 请注意,您必须直接使用 `FileResponse` 返回图像。 !!! Info
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) -
docs/de/docs/advanced/additional-responses.md
Sie können beispielsweise einen zusätzlichen Medientyp `image/png` hinzufügen und damit deklarieren, dass Ihre *Pfadoperation* ein JSON-Objekt (mit dem Medientyp `application/json`) oder ein PNG-Bild zurückgeben kann: ```Python hl_lines="19-24 28" {!../../../docs_src/additional_responses/tutorial002.py!} ``` !!! note "Hinweis" Beachten Sie, dass Sie das Bild direkt mit einer `FileResponse` zurückgeben müssen. !!! info
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) -
docs/en/docs/advanced/additional-responses.md
For example, you can add an additional media type of `image/png`, declaring that your *path operation* can return a JSON object (with media type `application/json`) or a PNG image: ```Python hl_lines="19-24 28" {!../../../docs_src/additional_responses/tutorial002.py!} ``` !!! note Notice that you have to return the image using a `FileResponse` directly. !!! info
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) -
docs/em/docs/advanced/additional-responses.md
``` ## 🌖 🔉 🆎 👑 📨 👆 💪 ⚙️ 👉 🎏 `responses` 🔢 🚮 🎏 🔉 🆎 🎏 👑 📨. 🖼, 👆 💪 🚮 🌖 📻 🆎 `image/png`, 📣 👈 👆 *➡ 🛠️* 💪 📨 🎻 🎚 (⏮️ 📻 🆎 `application/json`) ⚖️ 🇩🇴 🖼: ```Python hl_lines="19-24 28" {!../../../docs_src/additional_responses/tutorial002.py!} ``` !!! note 👀 👈 👆 ✔️ 📨 🖼 ⚙️ `FileResponse` 🔗. !!! info
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)