Node.js
Fondamental
Building a REST API with Express and basic routing
Type d'évaluation
Mise en situation réelle
Analyse
Intelligence Artificielle
Compétences ciblées
nodejs
express
rest-api
crud
routing
Scénario Technique
Context A backend team needs a simple CRUD API for managing a list of products stored in memory. The Problem All logic is currently in a single index.js file with nested callbacks, making the code hard to read and extend. Constraints Use Express to define GET, POST, PUT, and DELETE routes for /products. Store products in an in-memory array. Return appropriate HTTP status codes for each operation. Expected Deliverable An Express REST API with four CRUD routes for a products resource, using in-memory storage and correct status codes.
Prêt à évaluer ce talent ?
Accédez à l'interface de test complète pour soumettre votre architecture ou votre code.