Topics Covered

  • Duration: 80 minutes

  • Learning Objectives:

    • Use Node.js to build and serve a REST API.

  • Outline:

    1. Introduction to REST APIs and their structure.

    2. Setting up routes and handling HTTP requests.

    3. Integrating with JSON data.

    4. Using tools like Postman for testing APIs​​.

  • Student Activity:

    • Create a REST API for managing a list of tasks (GET, POST, PUT, DELETE routes).

    • Test your API using Postman and verify responses.

  • Homework Assignment:

    • Extend your API to include user authentication using a token (mock the process if needed).

    • Write documentation for your API endpoints.

Last updated