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
An e-commerce company needs a backend API for their product catalog. The catalog currently holds about 50,000 products and is growing. The frontend team and a mobile app team will consume this API.
Build a Node.js/Express REST API that supports:
Products have: id, name, description, price, category, in_stock (boolean), and created_at.
Implement the API in a src/ directory with an entry point at src/app.js (or src/app.ts). Use an in-memory array or SQLite for storage — no external database required.
Produce a package.json with all dependencies.
Do not start the server — just produce the source files.