diff --git a/CURRENT.md b/CURRENT.md index 0b15fa0..2a5a2e2 100644 --- a/CURRENT.md +++ b/CURRENT.md @@ -7,4 +7,10 @@ Implement Secure User Registration & CRUD (Milestone 1). None. ## Next Action -Read FastAPI official documentation on routing/Pydantic models, and design the request/response payloads for `POST /auth/register`. +Build one endpoint that accepts a validated request body (`POST /auth/register`). + +Tactical actions for next session: +1. Complete the narrow, focused Pydantic guide skeleton in `knowledge/skills/pydantic.md`. +2. Design the `UserRegister` and `UserResponse` Pydantic models. +3. Implement `POST /auth/register` in `bitetrack-api` routes returning a dummy response. +4. Verify route validation and responses. diff --git a/knowledge/skills/pydantic.md b/knowledge/skills/pydantic.md index 4dd5c15..2eed052 100644 --- a/knowledge/skills/pydantic.md +++ b/knowledge/skills/pydantic.md @@ -1,39 +1,21 @@ # Introduction to Pydantic -Notes during my Pydantic documentation review; + ## Why does Pydantic exist? ↓ -## What problem does it solve? - -↓ - ## What is a BaseModel? ↓ -## How does validation work? +## Automatic validation ↓ -## How does FastAPI use Pydantic? +## Creating my first model ↓ -## Input models vs output models +## How FastAPI uses BaseModel ↓ - -## Field validation - -↓ - -## Custom validators - -↓ - -## Serialization - -↓ - -## Configuration