Notes REST API
2 hCreate, read, update and delete notes through API routes, tested with curl or Postman.
- Build GET and POST on /api/notes and GET, PATCH and DELETE on /api/notes/[id]
- Validate every request body with Zod
- Return the right status codes: 201, 400, 404
- Test each route and save the requests in a file
Done when: Every route returns the right status code for both good and bad requests.
- Route handlers
- HTTP status codes
- Validation