docs(current): focus next session on Pydantic models and register endpoint
This commit is contained in:
1 parent
23145fb54e
commit
7fe23826a5
2 files changed
+11
-23
No files matched your search
+7
-1
@@ -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.
|
||||
@@ -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
|
||||
Reference in new issue
Block a user