javascript · intermediate · ~8h
Notes API
GET /notes, POST /notes, DELETE /notes/:id. Validate input. Return useful status codes.
Requirements
- POST rejects empty titles with 400
- GET returns an array
- DELETE of unknown id returns 404
Skills: Node.js & HTTP APIs · JavaScript fundamentals
Starter
server.js
javascript · sandboxed in your browser
Output
Run to see output.
Hints
- Keep the handler logic testable without listening on a port.