コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 4 of about 4 for option (0.003 sec.)
Behind a Proxy 12353
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 ... CLI with Uvicorn , running your FastAPI application. Providing the root_path To achieve this, you can use the command line option --root-path like: $ fastapi run main.py --root-path /api/v1 <span style="color: green;">INFO</span>: Uvicorn running on ht ... tp://127.0.0.1:8000 (Press CTRL+C to quit) If you use Hypercorn, it also has the option --root-path . Technical Details The ASGI specification defines a root_path for this use case. And the --root-path command ... line option provides that root_path . Checking the current root_path You can get the current root_path used by your application for ea ...
https://man.mtool.work/fastapi/0.115/advanced/behind-a-proxy/
Development - Contributing 8839
Development - Contributing Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . First, you might want to see the basic ways to help FastAPI and get help . Developing If ... e inside the requirements.txt file, the local version of FastAPI is marked to be installed in "editable" mode, with the -e option. Format the code There is a script that you can run that will format and clean all your code: $ bash scripts/format.sh It ... h it's at docs/en/ : $ cd docs/en/ Then run mkdocs in that directory: $ mkdocs serve --dev-addr 127 .0.0.1:8008 Typer CLI (optional) The instructions here show you how to use the script at ./scripts/docs.py with the python program directly. But you can ... Search in all documents already translated into your language for your-translated-document.md . For example VS Code has an option "Edit" -> "Find in Files". When translating a document, do not "pre-translate" #hash-parts that link to headings in untran ...
https://man.mtool.work/fastapi/0.115/contributing/
Custom Docs UI Static Assets (Self-Hosting) 8062
Custom Docs UI Static Assets (Self-Hosting) Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . The API docs use Swagger UI and ReDoc , and each of those need some Jav ... tic files needed for the docs and put them on that static/ directory. You can probably right-click each link and select an option similar to Save link as... . Swagger UI uses the files: swagger-ui-bundle.js swagger-ui.css And ReDoc uses the file: redoc ...
https://man.mtool.work/fastapi/0.115/how-to/custom-docs-ui-assets/
Release Notes 7674
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 ... by @pre-commit-ci[bot] . ? Update latest-changes GitHub Action. PR #12073 by @tiangolo . 0.112.2 Fixes ? Fix allow_inf_nan option for Param and Body classes. PR #11867 by @giunio-prc . ? Ensure that app.include_router merges nested lifespans. PR #9630 ... with pip install "fastapi[standard]" . Before, you would install pip install fastapi , now you should include the standard optional dependencies (unless you want to exclude one of those): pip install "fastapi[standard]" . This change is because having ... the standard optional dependencies installed by default was being inconvenient to several users, and having to install instead fastapi-slim wa ...
https://man.mtool.work/fastapi/0.115/release-notes/
PREV 1 NEXT