コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 6 of about 6 for routes (0.003 sec.)
Extending OpenAPI 12685
Extending OpenAPI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . There are some cases where you might need to modify the generated OpenAPI schema. In this section ... rt summary of the API. description : The description of your API, this can include markdown and will be shown in the docs. routes : A list of routes, these are each of the registered path operations . They are taken from app.routes . Info The parameter ... = "This is a very custom OpenAPI schema" , description = "Here's a longer description of the custom **OpenAPI** schema" , routes = app . routes , ) openapi_schema [ "info" ][ "x-logo" ] = { "url" : "https://fastapi.tiangolo.com/img/logo-margin/logo-te ... = "This is a very custom OpenAPI schema" , description = "Here's a longer description of the custom **OpenAPI** schema" , routes = app . routes , ) openapi_schema [ "info" ][ "x-logo" ] = { "url" : "https://fastapi.tiangolo.com/img/logo-margin/logo-te ...
https://man.mtool.work/fastapi/0.115/how-to/extending-openapi/
OpenAPI Callbacks 10291
OpenAPI Callbacks Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You could create an API with a path operation that could trigger a request to an external API cre ... def invoice_notification ( body : InvoiceEvent ): pass @app . post ( "/invoices/" , callbacks = invoices_callback_router . routes ) def create_invoice ( invoice : Invoice , callback_url : Union [ HttpUrl , None ] = None ): """ Create an invoice. This w ... ip The callback_url query parameter uses a Pydantic Url type. The only new thing is the callbacks=invoices_callback_router.routes as an argument to the path operation decorator . We'll see what that is next. Documenting the callback The actual callback ... def invoice_notification ( body : InvoiceEvent ): pass @app . post ( "/invoices/" , callbacks = invoices_callback_router . routes ) def create_invoice ( invoice : Invoice , callback_url : Union [ HttpUrl , None ] = None ): """ Create an invoice. This w ...
https://man.mtool.work/fastapi/0.115/advanced/openapi-callbacks/
Path Operationの高度な設定 8408
Path Operationの高度な設定 OpenAPI operationId 注意 あなたがOpenAPIの「エキスパート」でなければ、これは必要ないかもしれません。 path operation で operation_id パラメータを利用することで、OpenAPIの operationId を設定できます。 operation_id は ... ne : """ Simplify operation IDs so that generated API clients have simpler function names. Should be called only after all routes have been added. """ for route in app . routes : if isinstance ( route , APIRoute ): route . operation_id = route . name # ...
https://man.mtool.work/fastapi/0.115/advanced/path-operation-advanced-configurat...
Behind a Proxy 8280
Behind a Proxy Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some situations, you might need to use a proxy server like Traefik or Nginx with a configuration ... eate a file traefik.toml with: [entryPoints] [entryPoints.http] address = ":9999" [providers] [providers.file] filename = "routes.toml" This tells Traefik to listen on port 9999 and to use another file routes.toml . Tip We are using port 9999 instead o ... f the standard HTTP port 80 so that you don't have to run it with admin ( sudo ) privileges. Now create that other file routes.toml : [http] [http.middlewares] [http.middlewares.api-stripprefix.stripPrefix] prefixes = [ "/api/v1" ] [http.routers] [h ...
https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
Bigger Applications - Multiple Files 7640
Bigger Applications - Multiple Files Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you are building an application or a web API, it's rarely the case that you ... rs/items.py . With app.include_router() we can add each APIRouter to the main FastAPI application. It will include all the routes from that router as part of it. Technical Details It will actually internally create a path operation for each path operat ...
https://man.mtool.work/fastapi/0.115/tutorial/bigger-applications/
Release Notes 7494
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 ... of Python, run tests with all of them. PR #9686 by @tiangolo . 0.97.0 Features ✨ Add support for dependencies in WebSocket routes. PR #4534 by @paulo-raca . ✨ Add exception handler for WebSocketRequestValidationError (which also allows to override it). ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT