Skip to content
WebDev Path
Back

Week 17: Node.js and REST APIs

Next video

WebDev Path video lesson

About this lesson

Module:
Backend and databases
Time:
about 11 hours
Video:
2 min

Build your own API with routes, validation and proper status codes.

By the end of this week you can

  • Create routes and middleware
  • Design REST endpoints
  • Validate input with Zod

Learn

  • Node.js runtime basics
  • Express routes and middleware
  • REST design and status codes
  • Validation with Zod

Read or watch

Practice

  1. Build a notes REST API
  2. Test every endpoint with a REST client

Build

CRUD API with validation and error handling.

Check your understanding

Score 4 out of 5 to complete this week.

  1. 1. Which HTTP method should update part of an existing resource?
  2. 2. What status code fits "created successfully"?
  3. 3. What is Express middleware?
  4. 4. Where should secrets like API keys live?
  5. 5. What should an API return for invalid input?
0 of 5 answered