Skip to main content

Module 06 — Server-Side APIs

What This Module Covers

You've already used fetch — now you'll understand the full picture: what REST APIs are, how they're structured, how to query them with parameters, and how to handle errors robustly.

Learning Objectives

  • Understand REST conventions (methods, status codes, URLs)
  • Build a multi-endpoint fetch layer with TypeScript
  • Handle loading states, errors, and retries
  • Work with query parameters, pagination, and headers
  • Use the OpenWeatherMap API to build a weather dashboard

Module Lessons

  1. REST Fundamentals
  2. Fetch + Async/Await Patterns
  3. Error Handling
  4. API Design for Consumers

Challenge

Build a Weather Dashboard:

  • Search cities by name
  • Display current conditions + 5-day forecast
  • Search history stored in localStorage
  • Click previous search to reload it

View Challenge →