Idempotent API design — safe retries for POST endpoints, idempotency keys,
93
90%
Does it follow best practices?
Impact
100%
10.00xAverage score across 4 eval scenarios
Passed
No known issues
Build the order creation backend for a food delivery app. The mobile app sometimes has spotty connectivity, so requests may take a while or fail partway through. The endpoint should create an order and return the order details.
Produce a self-contained server.js (or server.ts) file with an Express app that:
POST /api/orders route that accepts { customerName, items, deliveryAddress } and creates an order.The code should be production-ready and follow best practices for an API that handles real customer orders.