- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 543 for item_d (0.34 seconds)
-
docs_src/schema_extra_example/tutorial005_py39.py
from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Item = Body( openapi_examples={ "normal": { "summary": "A normal example",
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) -
docs/tr/docs/tutorial/query-params.md
Bu durumda, eğer şu adrese giderseniz: ``` http://127.0.0.1:8000/items/foo?short=1 ``` veya ``` http://127.0.0.1:8000/items/foo?short=True ``` veya ``` http://127.0.0.1:8000/items/foo?short=true ``` veya ``` http://127.0.0.1:8000/items/foo?short=on ``` veya ``` http://127.0.0.1:8000/items/foo?short=yes ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 10:29:01 GMT 2025 - 5.2K bytes - Click Count (0) -
docs_src/app_testing/tutorial004_py39.py
from fastapi.testclient import TestClient items = {} @asynccontextmanager async def lifespan(app: FastAPI): items["foo"] = {"name": "Fighters"} items["bar"] = {"name": "Tenders"} yield # clean up items items.clear() app = FastAPI(lifespan=lifespan) @app.get("/items/{item_id}") async def read_items(item_id: str): return items[item_id] def test_read_items():Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.2K bytes - Click Count (0) -
tests/test_tutorial/test_body/test_tutorial004.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 6K bytes - Click Count (0) -
docs/fr/docs/deployment/docker.md
from typing import Optional from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Optional[str] = None): return {"item_id": item_id, "q": q} ``` * Vous devriez maintenant avoir une structure de répertoire telle que : ``` . ├── app │ └── main.py └── Dockerfile ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Nov 09 16:39:20 GMT 2024 - 7.5K bytes - Click Count (0) -
docs/ko/docs/tutorial/path-params.md
{* ../../docs_src/path_params/tutorial001.py hl[6:7] *} 경로 매개변수 `item_id`의 값은 함수의 `item_id` 인자로 전달됩니다. 그래서 이 예제를 실행하고 <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>로 이동하면, 다음 응답을 볼 수 있습니다: ```JSON {"item_id":"foo"} ``` ## 타입이 있는 매개변수 파이썬 표준 타입 어노테이션을 사용하여 함수에 있는 경로 매개변수의 타입을 선언할 수 있습니다:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 9.6K bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial006_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 254 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial005_py39.py
from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items(q: str = Query(default="fixedquery", min_length=3)): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q: results.update({"q": q})
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 276 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial006_an_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 294 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial002_an_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 322 bytes - Click Count (0)