- Sort Score
- Num 10 results
- Language All
Results 1481 - 1490 of 1,554 for FastApi (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/pt/docs/advanced/response-change-status-code.md
E se você declarar um `response_model`, ele ainda será utilizado para filtrar e converter o objeto que você retornou. O **FastAPI** utilizará este retorno *temporal* para extrair o código de status (e também cookies e headers), e irá colocá-los no retorno final que contém o valor que você retornou, filtrado por qualquer `response_model`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.7K bytes - Click Count (0) -
docs/ja/docs/tutorial/header-params.md
最初の値がデフォルト値で、追加の検証パラメータや注釈パラメータをすべて渡すことができます。 {* ../../docs_src/header_params/tutorial001.py hl[9] *} /// note | 技術詳細 `Header`は`Path`や`Query`、`Cookie`の「姉妹」クラスです。また、同じ共通の`Param`クラスを継承しています。 しかし、`fastapi`から`Query`や`Path`、`Header`などをインポートする場合、それらは実際には特殊なクラスを返す関数であることを覚えておいてください。 /// /// info | 情報 ヘッダーを宣言するには、`Header`を使う必要があります。なぜなら、そうしないと、パラメータがクエリのパラメータとして解釈されてしまうからです。 /// ## 自動変換Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 3.8K bytes - Click Count (0) -
scripts/playwright/header_param_models/image01.py
page.screenshot(path="docs/en/docs/img/tutorial/header-param-models/image01.png") # --------------------- context.close() browser.close() process = subprocess.Popen( ["fastapi", "run", "docs_src/header_param_models/tutorial001.py"] ) try: for _ in range(3): try: response = httpx.get("http://localhost:8000/docs") except httpx.ConnectError:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 1.1K bytes - Click Count (0) -
scripts/playwright/request_form_models/image01.py
page.screenshot(path="docs/en/docs/img/tutorial/request-form-models/image01.png") # --------------------- context.close() browser.close() process = subprocess.Popen( ["fastapi", "run", "docs_src/request_form_models/tutorial001.py"] ) try: for _ in range(3): try: response = httpx.get("http://localhost:8000/docs") except httpx.ConnectError:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Sep 13 09:14:46 GMT 2024 - 1.1K bytes - Click Count (0) -
docs/ja/docs/virtual-environments.md
以下のコマンドを実行したとき: <div class="termy"> ```console // Don't run this now, it's just an example 🤓 $ pip install "fastapi[standard]" ---> 100% ``` </div> FastAPIのコードを含む圧縮ファイルが、通常は [PyPI](https://pypi.org/project/fastapi/) からダウンロードされます。 また、FastAPIが依存する他のパッケージも**ダウンロード**されます。 それから、これらのファイルは**解凍**され、コンピュータのあるディレクトリに配置されます。
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Mar 19 12:22:33 GMT 2025 - 27.8K bytes - Click Count (0) -
docs/es/docs/how-to/conditional-openapi.md
Por ejemplo: {* ../../docs_src/conditional_openapi/tutorial001_py39.py hl[6,11] *} Aquí declaramos la configuración `openapi_url` con el mismo valor por defecto de `"/openapi.json"`. Y luego la usamos al crear la app de `FastAPI`. Entonces podrías desactivar OpenAPI (incluyendo las UI de documentación) configurando la variable de entorno `OPENAPI_URL` a una string vacía, así: <div class="termy"> ```console $ OPENAPI_URL= uvicorn main:appCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/extra-models.md
) ``` /// warning | 警告 辅助的附加函数只是为了演示可能的数据流,但它们显然不能提供任何真正的安全机制。 /// ## 减少重复 **FastAPI** 的核心思想就是减少代码重复。 代码重复会导致 bug、安全问题、代码失步等问题(更新了某个位置的代码,但没有同步更新其它位置的代码)。 上面的这些模型共享了大量数据,拥有重复的属性名和类型。 FastAPI 可以做得更好。 声明 `UserBase` 模型作为其它模型的基类。然后,用该类衍生出继承其属性(类型声明、验证等)的子类。 所有数据转换、校验、文档等功能仍将正常运行。
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 5.7K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial005.py
import importlib from types import ModuleType import pytest from fastapi.testclient import TestClient from inline_snapshot import snapshot from ...utils import needs_py310 @pytest.fixture( name="mod", params=[ pytest.param("tutorial005_py39"), pytest.param("tutorial005_py310", marks=needs_py310), pytest.param("tutorial005_an_py39"), pytest.param("tutorial005_an_py310", marks=needs_py310),
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 15.8K bytes - Click Count (0) -
tests/test_tutorial/test_configure_swagger_ui/test_tutorial003.py
from fastapi.testclient import TestClient from docs_src.configure_swagger_ui.tutorial003_py39 import app client = TestClient(app) def test_swagger_ui(): response = client.get("/docs") assert response.status_code == 200, response.text assert '"deepLinking": false,' in response.text, ( "overridden configs should be preserved" ) assert '"deepLinking": true' not in response.text, (
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.5K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial008d.py
import importlib from types import ModuleType import pytest from fastapi.testclient import TestClient @pytest.fixture( name="mod", params=[ pytest.param("tutorial008d_py39"), pytest.param("tutorial008d_an_py39"), ], ) def get_mod(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.dependencies.{request.param}") return mod
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.4K bytes - Click Count (0)