- Sort Score
- Result 10 results
- Languages All
Results 601 - 610 of 924 for docs_src (0.05 sec)
-
scripts/lint.sh
#!/usr/bin/env bash set -e set -x mypy fastapi ruff check fastapi tests docs_src scripts
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Apr 30 00:03:14 UTC 2024 - 125 bytes - Viewed (0) -
docs/en/docs/how-to/authentication-error-status-code.md
For example, you can create a subclass of `HTTPBearer` that returns a `403 Forbidden` error instead of the default `401 Unauthorized` error: {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *} /// tip Notice that the function returns the exception instance, it doesn't raise it. The raising is done in the rest of the internal code.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 1.3K bytes - Viewed (0) -
docs/pt/docs/advanced/wsgi.md
## Usando `WSGIMiddleware` { #using-wsgimiddleware } Você precisa importar o `WSGIMiddleware`. Em seguida, encapsule a aplicação WSGI (e.g. Flask) com o middleware. E então monte isso sob um path. {* ../../docs_src/wsgi/tutorial001_py39.py hl[2:3,3] *} ## Confira { #check-it } Agora, todas as requisições sob o path `/v1/` serão manipuladas pela aplicação Flask. E o resto será manipulado pelo **FastAPI**.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.2K bytes - Viewed (0) -
docs/pt/docs/how-to/authentication-error-status-code.md
Por exemplo, você pode criar uma subclasse de `HTTPBearer` que retorne um erro `403 Forbidden` em vez do erro padrão `401 Unauthorized`: {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *} /// tip | Dica Perceba que a função retorna a instância da exceção, ela não a lança. O lançamento é feito no restante do código interno.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 19:59:04 UTC 2025 - 1.3K bytes - Viewed (0) -
tests/test_tutorial/test_path_params/test_tutorial002.py
from fastapi.testclient import TestClient from docs_src.path_params.tutorial002_py39 import app client = TestClient(app) def test_get_items(): response = client.get("/items/1") assert response.status_code == 200, response.text assert response.json() == {"item_id": 1} def test_get_items_invalid_id(): response = client.get("/items/item1") assert response.status_code == 422, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.2K bytes - Viewed (0) -
scripts/playwright/separate_openapi_schemas/image05.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Sep 13 09:14:46 UTC 2024 - 984 bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/global-dependencies.md
In diesem Fall werden sie auf alle *Pfadoperationen* in der Anwendung angewendet: {* ../../docs_src/dependencies/tutorial012_an_py39.py hl[17] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.2K bytes - Viewed (0) -
scripts/playwright/query_param_models/image01.py
page.screenshot(path="docs/en/docs/img/tutorial/query-param-models/image01.png") # --------------------- context.close() browser.close() process = subprocess.Popen( ["fastapi", "run", "docs_src/query_param_models/tutorial001.py"] ) try: for _ in range(3): try: response = httpx.get("http://localhost:8000/docs") except httpx.ConnectError: time.sleep(1)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 1.3K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/global-dependencies.md
В этом случае они будут применяться ко всем *операциям пути* в приложении: {* ../../docs_src/dependencies/tutorial012_an_py39.py hl[17] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.7K bytes - Viewed (0) -
docs/en/docs/tutorial/security/oauth2-jwt.md
If the token is invalid, return an HTTP error right away. {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *} ## Update the `/token` *path operation* { #update-the-token-path-operation } Create a `timedelta` with the expiration time of the token. Create a real JWT access token and return it. {* ../../docs_src/security/tutorial004_an_py310.py hl[118:133] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 10.6K bytes - Viewed (0)