コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 5 of about 5 for configurations (0.004 sec.)
Configure Swagger UI 11582
Configure Swagger UI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can configure some extra Swagger UI parameters . To configure them, pass the swagger_ui_pa ... ng the FastAPI() app object or to the get_swagger_ui_html() function. swagger_ui_parameters receives a dictionary with the configurations passed to Swagger UI directly. FastAPI converts the configurations to JSON to make them compatible with JavaScript, as tha ... rs FastAPI includes some default configuration parameters appropriate for most of the use cases. It includes these default configurations: Python 3.8+ # Code above omitted ? swagger_ui_default_parameters : Annotated [ Dict [ str , Any ], Doc ( """ Default conf ... igurations for Swagger UI. You can use it as a template to add any other configurations needed. """ ), ] = { "dom_id" : "#swagger-ui" , "layout" : "BaseLayout" , "deepLinking" : True , "showExtensions" : True , ...
https://man.mtool.work/fastapi/0.115/how-to/configure-swagger-ui/
General - How To - Recipes 11233
General - How To - Recipes Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Here are several pointers to other places in the docs, for general or frequent questions ... - OpenAPI To add tags to your path operations , and group them in the docs UI, read the docs for Tutorial - Path Operation Configurations - Tags . Documentation Summary and Description - OpenAPI To add a summary and description to your path operations , and sh ... ow them in the docs UI, read the docs for Tutorial - Path Operation Configurations - Summary and Description . Documentation Response description - OpenAPI To define the description of the response, shown ... in the docs UI, read the docs for Tutorial - Path Operation Configurations - Response description . Documentation Deprecate a Path Operation - OpenAPI To deprecate a path operation , and show it in ...
https://man.mtool.work/fastapi/0.115/how-to/general/
Settings and Environment Variables 8015
Settings and Environment Variables Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In many cases your application could need some external settings or configurations ... . admin_email , "items_per_user" : settings . items_per_user , } Run the server Next, you would run the server passing the configurations as environment variables, for example you could set an ADMIN_EMAIL and APP_NAME with: $ ADMIN_EMAIL = "deadpool@example.co ... u can read more about it in the Python docs for @lru_cache . Recap You can use Pydantic Settings to handle the settings or configurations for your application, with all the power of Pydantic models. By using a dependency you can simplify testing. You can use . ...
https://man.mtool.work/fastapi/0.115/advanced/settings/
Response Headers 7942
Response Headers Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Use a Response parameter You can declare a parameter of type Response in your path operation funct ... . But if you have custom headers that you want a client in a browser to be able to see, you need to add them to your CORS configurations (read more in CORS (Cross-Origin Resource Sharing) ), using the parameter expose_headers documented in Starlette's CORS do ...
https://man.mtool.work/fastapi/0.115/advanced/response-headers/
Release Notes 7151
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 ... #13184 by @alejsdev . ✅ Simplify tests for path_query_params. PR #13181 by @alejsdev . ✅ Simplify tests for path_operation_configurations. PR #13180 by @alejsdev . ✅ Simplify tests for header_params. PR #13179 by @alejsdev . ✅ Simplify tests for extra_models. ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT