- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 378 for item_2 (0.04 seconds)
-
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial001.py
from docs_src.path_operation_advanced_configuration.tutorial001_py39 import app client = TestClient(app) def test_get(): response = client.get("/items/") assert response.status_code == 200, response.text assert response.json() == [{"item_id": "Foo"}] def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1K bytes - Click Count (0) -
docs/ru/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
{* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *} В примере выше модель входных данных — это модель Pydantic v1, а модель выходных данных (указанная в `response_model=ItemV2`) — это модель Pydantic v2. ### Параметры Pydantic v1 { #pydantic-v1-parameters }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 10 20:54:56 GMT 2025 - 8.1K bytes - Click Count (0) -
docs/ko/docs/tutorial/query-params.md
이 경우, 아래로 이동하면: ``` http://127.0.0.1:8000/items/foo?short=1 ``` 또는 ``` http://127.0.0.1:8000/items/foo?short=True ``` 또는 ``` http://127.0.0.1:8000/items/foo?short=true ``` 또는 ``` http://127.0.0.1:8000/items/foo?short=on ``` 또는 ``` http://127.0.0.1:8000/items/foo?short=yes ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 5.2K bytes - Click Count (0) -
tests/test_tutorial/test_path_operation_configurations/test_tutorial006.py
client = TestClient(app) @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/items/", 200, [{"name": "Foo", "price": 42}]), ("/users/", 200, [{"username": "johndoe"}]), ("/elements/", 200, [{"item_id": "Foo"}]), ], ) def test_query_params_str_validations(path, expected_status, expected_response): response = client.get(path)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.4K bytes - Click Count (0) -
docs_src/security/tutorial004_an_py310.py
async def read_users_me( current_user: Annotated[User, Depends(get_current_active_user)], ): return current_user @app.get("/users/me/items/") async def read_own_items( current_user: Annotated[User, Depends(get_current_active_user)], ):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 29 02:57:38 GMT 2025 - 4.1K bytes - Click Count (0) -
docs/ja/docs/tutorial/query-params.md
"type": "value_error.missing" } ] } ``` `needy` は必須のパラメータなので、URLにセットする必要があります: ``` http://127.0.0.1:8000/items/foo-item?needy=sooooneedy ``` ...これはうまくいくでしょう: ```JSON { "item_id": "foo-item", "needy": "sooooneedy" } ``` そして当然、あるパラメータを必須に、別のパラメータにデフォルト値を設定し、また別のパラメータをオプショナルにできます: {* ../../docs_src/query_params/tutorial006.py hl[10] *}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 5.4K bytes - Click Count (0) -
docs/en/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 5.5K bytes - Click Count (0) -
docs/de/docs/tutorial/bigger-applications.md
## Ein weiteres Modul mit `APIRouter` { #another-module-with-apirouter } Nehmen wir an, Sie haben im Modul unter `app/routers/items.py` auch die Endpunkte, die für die Verarbeitung von Artikeln („Items“) aus Ihrer Anwendung vorgesehen sind. Sie haben *Pfadoperationen* für: * `/items/` * `/items/{item_id}` Es ist alles die gleiche Struktur wie bei `app/routers/users.py`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 13:54:34 GMT 2025 - 21.3K bytes - Click Count (0) -
docs/ru/docs/tutorial/bigger-applications.md
## Ещё один модуль с `APIRouter` { #another-module-with-apirouter } Давайте также предположим, что у вас есть *эндпоинты*, отвечающие за обработку "items", и они находятся в модуле `app/routers/items.py`. У вас определены следующие *операции пути* (*эндпоинты*): * `/items/` * `/items/{item_id}` Тут всё точно также, как и в ситуации с `app/routers/users.py`. Но теперь мы хотим поступить немного умнее и слегка упростить код.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Dec 11 21:25:03 GMT 2025 - 30.4K bytes - Click Count (0) -
docs_src/security/tutorial005_an_py310.py
current_user: Annotated[User, Depends(get_current_active_user)], ): return current_user @app.get("/users/me/items/") async def read_own_items( current_user: Annotated[User, Security(get_current_active_user, scopes=["items"])], ): return [{"item_id": "Foo", "owner": current_user.username}] @app.get("/status/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 29 02:57:38 GMT 2025 - 5.3K bytes - Click Count (0)