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 warehouse management company needs an API to track inventory across multiple warehouse locations. The system manages tens of thousands of inventory items and warehouse staff use a web dashboard to check stock levels, receive new shipments, and transfer items between locations.
Build a Python/Flask REST API that supports:
Inventory items have: id, sku, name, category, quantity, unit_cost, reorder_threshold, warehouse_id, last_updated.
Implement the API in an app/ directory with an entry point at app/__init__.py or app.py. Use SQLite or in-memory storage.
Produce a requirements.txt with dependencies.
Do not start the server — just produce the source files.