REST API design patterns — response envelopes, pagination, filtering, status codes, and resource naming
87
83%
Does it follow best practices?
Impact
98%
1.78xAverage score across 4 eval scenarios
Passed
No known issues
A SaaS company needs an internal API for their admin dashboard to manage users. The system has thousands of users and admins need to search, filter, and sort them efficiently.
Build a Python/FastAPI REST API that supports:
Users have: id, name, email, role, status, created_at, and last_login_at.
Implement the API in a main.py file (or split across a src/ directory). Use an in-memory list or SQLite for storage.
Produce a requirements.txt with dependencies.
Do not start the server — just produce the source files.