Topics Covered
Duration: 80 minutes
Learning Objectives
Understand the HTTP protocol and its components.
Learn the structure and principles of REST APIs.
Debug HTTP requests using tools like Postman.
Topic Outline (30-min)
HTTP Basics:
Client-server relationship.
HTTP methods: GET, POST, PUT, DELETE.
HTTP status codes and headers.
REST API Design Principles:
Resource-based design.
Statelessness.
Data format: JSON.
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:
Serves different messages based on the route (
/,/about,/contact).Logs the request method and URL to the console.
Last updated