Topics Covered

Duration: 80 minutes


Learning Objectives

  1. Understand the HTTP protocol and its components.

  2. Learn the structure and principles of REST APIs.

  3. Debug HTTP requests using tools like Postman.


Topic Outline (30-min)

  1. HTTP Basics:

    • Client-server relationship.

    • HTTP methods: GET, POST, PUT, DELETE.

    • HTTP status codes and headers.

  2. REST API Design Principles:

    • Resource-based design.

    • Statelessness.

    • Data format: JSON.

  3. Debugging HTTP Requests:

    • Inspecting requests and responses.

    • Using tools like Postman.


Student Activity (30-min)

Activity: Building and Testing a Basic HTTP Server


Homework/Practice Coding Assignment (20-min)

Task: Create an HTTP server that:

  1. Serves different messages based on the route (/, /about, /contact).

  2. Logs the request method and URL to the console.

Last updated