- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,916 for FastAPI (0.08 sec)
-
tests/test_union_body_discriminator_annotated.py
# Ref: https://github.com/fastapi/fastapi/discussions/14495 from typing import Annotated, Union import pytest from fastapi import FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel @pytest.fixture(name="client") def client_fixture() -> TestClient: from fastapi import Body from pydantic import Discriminator, Tag class Cat(BaseModel):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 7.7K bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial002_py39.py
from typing import Callable from fastapi import Body, FastAPI, HTTPException, Request, Response from fastapi.exceptions import RequestValidationError from fastapi.routing import APIRoute class ValidationErrorLoggingRoute(APIRoute): def get_route_handler(self) -> Callable: original_route_handler = super().get_route_handler() async def custom_route_handler(request: Request) -> Response: try:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 926 bytes - Viewed (0) -
docs/ru/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
Если у вас старое приложение FastAPI, возможно, вы используете Pydantic версии 1. FastAPI поддерживает и Pydantic v1, и v2 начиная с версии 0.100.0. Если у вас был установлен Pydantic v2, использовался он. Если вместо этого был установлен Pydantic v1 — использовался он.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 10 20:54:56 UTC 2025 - 8.1K bytes - Viewed (0) -
docs_src/pydantic_v1_in_v2/tutorial004_an_py39.py
from typing import Annotated, Union from fastapi import FastAPI from fastapi.temp_pydantic_v1_params import Body from pydantic.v1 import BaseModel class Item(BaseModel): name: str description: Union[str, None] = None size: float app = FastAPI() @app.post("/items/") async def create_item(item: Annotated[Item, Body(embed=True)]) -> Item:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 16:45:54 UTC 2025 - 373 bytes - Viewed (0) -
docs/pt/docs/features.md
# Recursos { #features } ## Recursos do FastAPI { #fastapi-features } **FastAPI** te oferece o seguinte: ### Baseado em padrões abertos { #based-on-open-standards }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 10.6K bytes - Viewed (0) -
docs/uk/docs/index.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 24.2K bytes - Viewed (0) -
.github/workflows/test-redistribute.yml
run: | cd dist tar xvf fastapi*.tar.gz - name: Install test dependencies run: | cd dist/fastapi*/ pip install -r requirements-tests.txt env: TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }} - name: Run source distribution tests run: | cd dist/fastapi*/ bash scripts/test.sh - name: Build wheel distributionRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Nov 21 13:03:21 UTC 2025 - 1.8K bytes - Viewed (0) -
tests/test_additional_response_extra.py
from fastapi import APIRouter, FastAPI from fastapi.testclient import TestClient router = APIRouter() sub_router = APIRouter() app = FastAPI() @sub_router.get("/") def read_item(): return {"id": "foo"} router.include_router(sub_router, prefix="/items") app.include_router(router) client = TestClient(app) def test_path_operation(): response = client.get("/items/")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.2K bytes - Viewed (0) -
tests/test_deprecated_openapi_prefix.py
from fastapi import FastAPI, Request from fastapi.testclient import TestClient app = FastAPI(openapi_prefix="/api/v1") @app.get("/app") def read_main(request: Request): return {"message": "Hello World", "root_path": request.scope.get("root_path")} client = TestClient(app) def test_main(): response = client.get("/app") assert response.status_code == 200
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.2K bytes - Viewed (0) -
docs/ja/docs/project-generation.md
詳細はレポジトリのドキュメントを参照して下さい。 ## フルスタック FastAPI MongoDB ...時間の都合等によっては、今後作成されるかもしれません。😅 🎉 ## spaCyとFastAPIを使用した機械学習モデル GitHub: <a href="https://github.com/microsoft/cookiecutter-spacy-fastapi" class="external-link" target="_blank">https://github.com/microsoft/cookiecutter-spacy-fastapi</a> ### spaCyとFastAPIを使用した機械学習モデル - 機能 * **spaCy** のNERモデルの統合。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Jul 29 23:35:07 UTC 2024 - 7.1K bytes - Viewed (0)