- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 447 for Router (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_additional_responses_router.py
message: str app = FastAPI() router = APIRouter() @router.get("/a", responses={501: {"description": "Error 1"}}) async def a(): return "a" @router.get( "/b", responses={ 502: {"description": "Error 2"}, "4XX": {"description": "Error with range, upper"}, }, ) async def b(): return "b" @router.get( "/c", responses={
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 5.6K bytes - Click Count (0) -
tests/test_router_prefix_with_template.py
from fastapi import APIRouter, FastAPI from fastapi.testclient import TestClient app = FastAPI() router = APIRouter() @router.get("/users/{id}") def read_user(segment: str, id: str): return {"segment": segment, "id": id} app.include_router(router, prefix="/{segment}") client = TestClient(app) def test_get(): response = client.get("/seg/users/foo")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 08 04:37:38 GMT 2020 - 484 bytes - Click Count (0) -
docs/uk/docs/tutorial/bigger-applications.md
Ми імпортуємо підмодуль `items` напряму, замість імпорту лише його змінної `router`. Це тому, що в підмодулі `users` також є змінна з назвою `router`. Якби ми імпортували один за одним, як: ```Python from .routers.items import router from .routers.users import router ``` `router` з `users` перезаписав би той, що з `items`, і ми не змогли б використовувати їх одночасно.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 27.4K bytes - Click Count (0) -
docs/tr/docs/how-to/custom-request-and-route.md
{* ../../docs_src/custom_request_and_route/tutorial002_an_py310.py hl[17:19] *} ## Bir router içinde özel `APIRoute` sınıfı { #custom-apiroute-class-in-a-router } Bir `APIRouter` için `route_class` parametresini de ayarlayabilirsiniz: {* ../../docs_src/custom_request_and_route/tutorial003_py310.py hl[26] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 4.9K bytes - Click Count (0) -
tests/test_modules_same_name_body/app/main.py
from fastapi import FastAPI from . import a, b app = FastAPI() app.include_router(a.router, prefix="/a")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jun 28 17:35:16 GMT 2019 - 150 bytes - Click Count (0) -
docs/de/docs/how-to/custom-request-and-route.md
## Benutzerdefinierte `APIRoute`-Klasse in einem Router { #custom-apiroute-class-in-a-router } Sie können auch den Parameter `route_class` eines `APIRouter` festlegen: {* ../../docs_src/custom_request_and_route/tutorial003_py310.py hl[26] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 5.6K bytes - Click Count (0) -
docs/en/docs/release-notes.md
* `dependencies`: to include ✨ router-level dependencies ✨ that apply to all the *path operations* in a router. Up to now, this was only possible with `include_router`. * `callbacks`: OpenAPI callbacks that apply to all the *path operations* in this router. * `deprecated`: to mark all the *path operations* in a router as deprecated.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Apr 03 12:07:04 GMT 2026 - 631K bytes - Click Count (0) -
docs/es/docs/how-to/custom-request-and-route.md
## Clase personalizada `APIRoute` en un router { #custom-apiroute-class-in-a-router } También puedes establecer el parámetro `route_class` de un `APIRouter`: {* ../../docs_src/custom_request_and_route/tutorial003_py310.py hl[26] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 4.8K bytes - Click Count (0) -
docs/ru/docs/how-to/custom-request-and-route.md
## Пользовательский класс `APIRoute` в роутере { #custom-apiroute-class-in-a-router } Вы также можете задать параметр `route_class` у `APIRouter`: {* ../../docs_src/custom_request_and_route/tutorial003_py310.py hl[26] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 7.1K bytes - Click Count (0) -
docs/de/docs/advanced/openapi-callbacks.md
/// ### Den Callback-Router hinzufügen { #add-the-callback-router } An diesem Punkt haben Sie die benötigte(n) *Callback-Pfadoperation(en)* (diejenige(n), die der *externe Entwickler* in der *externen API* implementieren sollte) im Callback-Router, den Sie oben erstellt haben.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 8.9K bytes - Click Count (0)