- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for read_items (0.05 sec)
-
docs/ru/docs/deployment/docker.md
```Python from typing import Union 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: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile В этой же директории создайте файл `Dockerfile` и заполните его: ```{ .dockerfile .annotate }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Thu Dec 12 22:48:28 UTC 2024 - 57.6K bytes - Viewed (0)