- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 117 for api_route (0.18 sec)
-
docs/em/docs/advanced/generate-clients.md
### 🛃 🏗 😍 🆔 🔢 FastAPI ⚙️ **😍 🆔** 🔠 *➡ 🛠️*, ⚫️ ⚙️ **🛠️ 🆔** & 📛 🙆 💪 🛃 🏷, 📨 ⚖️ 📨. 👆 💪 🛃 👈 🔢. ⚫️ ✊ `APIRoute` & 🔢 🎻. 🖼, 📥 ⚫️ ⚙️ 🥇 🔖 (👆 🔜 🎲 ✔️ 🕴 1️⃣ 🔖) & *➡ 🛠️* 📛 (🔢 📛). 👆 💪 ⤴️ 🚶♀️ 👈 🛃 🔢 **FastAPI** `generate_unique_id_function` 🔢: //// tab | 🐍 3️⃣.6️⃣ & 🔛
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/de/docs/advanced/generate-clients.md
Sie können diese Funktion anpassen. Sie nimmt eine `APIRoute` und gibt einen String zurück. Hier verwendet sie beispielsweise den ersten Tag (Sie werden wahrscheinlich nur einen Tag haben) und den Namen der *Pfadoperation* (den Funktionsnamen).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.9K bytes - Viewed (0) -
docs/en/mkdocs.yml
- reference/index.md - reference/fastapi.md - reference/parameters.md - reference/status.md - reference/uploadfile.md - reference/exceptions.md - reference/dependencies.md - reference/apirouter.md - reference/background.md - reference/request.md - reference/websockets.md - reference/httpconnection.md - reference/response.md - reference/responses.md - reference/middleware.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 22 20:28:02 UTC 2024 - 10.4K bytes - Viewed (0) -
docs/em/docs/advanced/custom-response.md
{"message": "Hello World"} ``` ...👉 📨 🔜 📨: ```json { "message": "Hello World" } ``` ↗️, 👆 🔜 🎲 🔎 🌅 👍 🌌 ✊ 📈 👉 🌘 ❕ 🎻. 👶 ## 🔢 📨 🎓 🕐❔ 🏗 **FastAPI** 🎓 👐 ⚖️ `APIRouter` 👆 💪 ✔ ❔ 📨 🎓 ⚙️ 🔢. 🔢 👈 🔬 👉 `default_response_class`. 🖼 🔛, **FastAPI** 🔜 ⚙️ `ORJSONResponse` 🔢, 🌐 *➡ 🛠️*, ↩️ `JSONResponse`. ```Python hl_lines="2 4"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.7K bytes - Viewed (0) -
docs/ja/docs/advanced/custom-response.md
ファイルレスポンスには、適切な `Content-Length` 、 `Last-Modified` 、 `ETag` ヘッダーが含まれます。 ```Python hl_lines="2 10" {!../../docs_src/custom_response/tutorial009.py!} ``` ## デフォルトレスポンスクラス **FastAPI** クラスのインスタンスか `APIRouter` を生成するときに、デフォルトのレスポンスクラスを指定できます。 定義するためのパラメータは、 `default_response_class` です。 以下の例では、 **FastAPI** は、全ての *path operation* で `JSONResponse` の代わりに `ORJSONResponse` をデフォルトとして利用します。 ```Python hl_lines="2 4"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.6K bytes - Viewed (0) -
docs/de/docs/advanced/custom-response.md
Natürlich werden Sie wahrscheinlich viel bessere Möglichkeiten finden, Vorteil daraus zu ziehen, als JSON zu formatieren. 😉 ## Standard-Response-Klasse Beim Erstellen einer **FastAPI**-Klasseninstanz oder eines `APIRouter`s können Sie angeben, welche Response-Klasse standardmäßig verwendet werden soll. Der Parameter, der das definiert, ist `default_response_class`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.5K bytes - Viewed (0) -
docs/zh/docs/advanced/generate-clients.md
在这种情况下,您必须确保每个操作ID在其他方面是**唯一**的。 例如,您可以确保每个*路径操作*都有一个标签,然后根据**标签**和*路径操作***名称**(函数名)来生成操作ID。 ### 自定义生成唯一ID函数 FastAPI为每个*路径操作*使用一个**唯一ID**,它用于**操作ID**,也用于任何所需自定义模型的名称,用于请求或响应。 你可以自定义该函数。它接受一个 `APIRoute` 对象作为输入,并输出一个字符串。 例如,以下是一个示例,它使用第一个标签(你可能只有一个标签)和*路径操作*名称(函数名)。 然后,你可以将这个自定义函数作为 `generate_unique_id_function` 参数传递给 **FastAPI**: //// tab | Python 3.9+ ```Python hl_lines="6-7 10"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
} ``` Of course, you will probably find much better ways to take advantage of this than formatting JSON. 😉 ## Default response class When creating a **FastAPI** class instance or an `APIRouter` you can specify which response class to use by default. The parameter that defines this is `default_response_class`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12K bytes - Viewed (0) -
docs/pt/docs/advanced/custom-response.md
Obviamente, você provavelmente vai encontrar maneiras muito melhores de se aproveitar disso do que a formatação de JSON. 😉 ## Classe de resposta padrão Quando você criar uma instância da classe **FastAPI** ou um `APIRouter` você pode especificar qual classe de resposta utilizar por padrão. O padrão que define isso é o `default_response_class`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 29 11:47:10 UTC 2024 - 13.5K bytes - Viewed (0) -
docs/en/docs/release-notes.md
```Python from fastapi import APIRouter, Depends async def some_dependency(): return router = APIRouter(prefix="/users", dependencies=[Depends(some_dependency)]) ``` **In `include_router`** Most of these settings are now supported in `APIRouter`, which normally lives closer to the related code, so it is recommended to use `APIRouter` when possible.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Nov 01 11:25:57 UTC 2024 - 460.3K bytes - Viewed (0)