Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 360 for router (0.05 sec)

  1. docs/pt/llm-prompt.md

    * path operation: operação de rota
    * path operation function: função de operação de rota
    * prefix: prefixo
    * request (as in HTTP request): request (do not change if it's already translated to requisição)
    * router (as in FastAPI's router): router (do not change if it's already translated to "roteador" or "roteadores")
    * response (as in HTTP response): response (do not change if it's already translated to resposta)
    * shutdown (of the app): encerramento
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/openapi-callbacks.md

    ///
    
    ### Add the callback router { #add-the-callback-router }
    
    At this point you have the *callback path operation(s)* needed (the one(s) that the *external developer*  should implement in the *external API*) in the callback router you created above.
    
    Now use the parameter `callbacks` in *your API's path operation decorator* to pass the attribute `.routes` (that's actually just a `list` of routes/*path operations*) from that callback router:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. 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] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. tests/test_annotated.py

        assert response.json() == {"foo": "baz"}
    
    
    def test_nested_router():
        app = FastAPI()
    
        router = APIRouter(prefix="/nested")
    
        @router.get("/test")
        async def test(var: Annotated[str, Query()] = "bar"):
            return {"foo": var}
    
        app.include_router(router)
    
        client = TestClient(app)
    
        response = client.get("/nested/test")
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  5. 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] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 5K bytes
    - Viewed (0)
  6. docs_src/custom_request_and_route/tutorial002_an_py39.py

                    detail = {"errors": exc.errors(), "body": body.decode()}
                    raise HTTPException(status_code=422, detail=detail)
    
            return custom_route_handler
    
    
    app = FastAPI()
    app.router.route_class = ValidationErrorLoggingRoute
    
    
    @app.post("/")
    async def sum_numbers(numbers: Annotated[list[int], Body()]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 947 bytes
    - Viewed (0)
  7. docs_src/custom_request_and_route/tutorial002_py310.py

                    detail = {"errors": exc.errors(), "body": body.decode()}
                    raise HTTPException(status_code=422, detail=detail)
    
            return custom_route_handler
    
    
    app = FastAPI()
    app.router.route_class = ValidationErrorLoggingRoute
    
    
    @app.post("/")
    async def sum_numbers(numbers: list[int] = Body()):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 935 bytes
    - Viewed (0)
  8. docs_src/custom_request_and_route/tutorial001_an_py39.py

                request = GzipRequest(request.scope, request.receive)
                return await original_route_handler(request)
    
            return custom_route_handler
    
    
    app = FastAPI()
    app.router.route_class = GzipRoute
    
    
    @app.post("/sum")
    async def sum_numbers(numbers: Annotated[list[int], Body()]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 988 bytes
    - Viewed (0)
  9. docs_src/custom_request_and_route/tutorial002_py39.py

                    detail = {"errors": exc.errors(), "body": body.decode()}
                    raise HTTPException(status_code=422, detail=detail)
    
            return custom_route_handler
    
    
    app = FastAPI()
    app.router.route_class = ValidationErrorLoggingRoute
    
    
    @app.post("/")
    async def sum_numbers(numbers: list[int] = Body()):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 926 bytes
    - Viewed (0)
  10. docs_src/custom_request_and_route/tutorial001_py310.py

                request = GzipRequest(request.scope, request.receive)
                return await original_route_handler(request)
    
            return custom_route_handler
    
    
    app = FastAPI()
    app.router.route_class = GzipRoute
    
    
    @app.post("/sum")
    async def sum_numbers(numbers: list[int] = Body()):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 976 bytes
    - Viewed (0)
Back to top