Stack:
FastAPI
พรีเซ็ต FastAPI
แนวทางการให้เหตุผลที่ขั้นตอน onboard ใช้สำหรับบริการ FastAPI นี่คือเช็กลิสต์ ไม่ใช่เทมเพลต โดยยึดสภาพจริงที่ตรวจพบเป็นหลัก
สัญญาณที่ใช้ตรวจสอบ
fastapiในpyproject.toml/requirements.txt, ASGI server (uvicorn,gunicornพร้อมuvicorn.workers) และ instanceapp = FastAPI()- โมดูล
APIRouter, path operation แบบasync defและ Pydantic model หรือpydantic-settings - อนุมาน package manager และ test runner จาก manifest และ lockfile ที่มีอยู่
สิ่งที่ต้องให้เหตุผล
- คำสั่ง test จริง (มักเป็น
pytestร่วมกับhttpx/TestClient) และ gate ของ lint/type-check (ruff,mypy) โดยบันทึกไว้ตามต้นฉบับทุกตัวอักษร - โครงสร้าง router, flow ของ request → dependency → handler → response model และตำแหน่งที่เก็บ setting และ secret
- endpoint แบบ sync กับ async, การเรียก blocking ใน event loop และ skill ที่เหมาะกับสแตกสำหรับ router, schema และ dependency
หมายเหตุ
บันทึกวิธีที่ app ถูก assemble (include_router), คำสั่งรัน (uvicorn app.main:app) และว่า Alembic จัดการ migration หรือไม่