720 B
720 B
FastAPI :<3A><>(
<D9>/<2F>*(uv<75><06>FastAPI:<3A><>(
<89>Ō<D0>L
(uv<08>P
-
<1D>y<>
uv init -
<89>ŝV
uv sync -
/<2F><><A8> <0A>h
uv run uvicorn app.main:app --reload
(pip
-
<89>ŝV
pip install -r requirements.txt -
/<2F><><A8> <0A>h
uvicorn app.main:app --reload
API<87>c
/<2F> <0A>h<0C><><BF>0@<40>API<50>c
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
API<EF><B9>
<FA>@<40><>
GET /- "<22><>oGET /health- e<><65><B7>
F<C1><A1>API
GET /api/v1/items- <20><>@ F<>GET /api/v1/items/{item_id}- <20><><07>F<9A>POST /api/v1/items- <1B><>F<B0>PUT /api/v1/items/{item_id}- <20><>F<B0>DELETE /api/v1/items/{item_id}- dF<64>