This diagram visualizes the API server workflow with multiple endpoints.
graph TD
subgraph APIServerWorkflow["API Server Workflow"]
HS["HTTP Server (:8080)"] --> AR["API Router"]
AR --> UH["Users Handler"]
AR --> PH["Products Handler"]
AR --> HH["Health Handler"]
end
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/users |
Retrieve users |
POST |
/api/users |
Create user |
GET |
/api/products |
Retrieve products |
POST |
/api/products |
Create product |
GET |
/health |
Health check |
This shows how a request flows through the system.
graph LR
CR["Client Request"] --> HS["HTTP Server (:8080)"]
HS --> AR["API Router"]
AR --> H["Handler"]
H --> JR["JSON Response"]