コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 4 of about 4 for routing (0.004 sec.)
Custom Request and APIRoute class 12389
Custom Request and APIRoute class Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some cases, you may want to override the logic used by the Request and APIRout ... n 3.8+ import gzip from typing import Callable , List from fastapi import Body , FastAPI , Request , Response from fastapi.routing import APIRoute class GzipRequest ( Request ): async def body ( self ) -> bytes : if not hasattr ( self , "_body" ): body ... = Body ()): return { "sum" : sum ( numbers )} Create a custom GzipRoute class Next, we create a custom subclass of fastapi.routing.APIRoute that will make use of the GzipRequest . This time, it will overwrite the method APIRoute.get_route_handler() . Th ... n 3.8+ import gzip from typing import Callable , List from fastapi import Body , FastAPI , Request , Response from fastapi.routing import APIRoute class GzipRequest ( Request ): async def body ( self ) -> bytes : if not hasattr ( self , "_body" ): body ...
https://man.mtool.work/fastapi/0.115/how-to/custom-request-and-route/
Generate Clients 8488
Generate Clients Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . As FastAPI is based on the OpenAPI specification, you get automatic compatibility with many tools, ... tom function to FastAPI as the generate_unique_id_function parameter: Python 3.9+ from fastapi import FastAPI from fastapi.routing import APIRoute from pydantic import BaseModel def custom_generate_unique_id ( route : APIRoute ): return f " { route . ta ... ser received" } ? Other versions and variants Python 3.8+ from typing import List from fastapi import FastAPI from fastapi.routing import APIRoute from pydantic import BaseModel def custom_generate_unique_id ( route : APIRoute ): return f " { route . ta ...
https://man.mtool.work/fastapi/0.115/advanced/generate-clients/
Path Operationの高度な設定 8358
Path Operationの高度な設定 OpenAPI operationId 注意 あなたがOpenAPIの「エキスパート」でなければ、これは必要ないかもしれません。 path operation で operation_id パラメータを利用することで、OpenAPIの operationId を設定できます。 operation_id は ... する場合は、すべての path operation を追加した後に行う必要があります。 Python 3.8+ from fastapi import FastAPI from fastapi.routing import APIRoute app = FastAPI () @app . get ( "/items/" ) async def read_items (): return [{ "item_id" : "Foo" }] def use_ ...
https://man.mtool.work/fastapi/0.115/advanced/path-operation-advanced-configurat...
Release Notes 7711
Release Notes Latest Changes 0.115.11 Fixes ? Add docs examples and tests (support) for Annotated custom validations, like AfterValidator , revert #13440 . PR #13442 by @tiangolo . New docs: Query Parameters and String Validations - Custom ... atus.md . PR #10809 by @clarencepenz . ✏️ Fix typo in openapi-callbacks.md . PR #10673 by @kayjan . ✏️ Fix typo in fastapi/routing.py . PR #10520 by @sepsh . ? Replace HTTP code returned in case of existing user error in docs for testing. PR #4482 by @T ... stapi/params.py . PR #9854 by @russbiggs . ✏️ Fix typos in comments on internal code in fastapi/concurrency.py and fastapi/routing.py . PR #9590 by @ElliottLarsen . Docs ✏️ Fix typo in release notes. PR #9835 by @francisbergin . ? Add external article: ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT