Practice & Assessment
Test your understanding of API Basics: What Are APIs and Why They Matter
Multiple Choice Questions
5What does REST stand for in REST API?
Which HTTP method is both safe and idempotent?
What HTTP status code should a REST API return after successfully creating a new resource?
What is the key difference between PUT and PATCH?
Which REST constraint states that the server stores no client session state between requests?
Mini Project
REST API Design Document for a Task Management System
Create a complete REST API design document for a Task Management System. The system has Users, Projects, and Tasks. Without writing any code, design: the full URL structure for all resources and nested resources, the HTTP method for every endpoint, the request body schema for POST and PUT endpoints in JSON format, the response body schema for each endpoint, the appropriate HTTP status codes for success and error scenarios, and a description of query parameters for filtering tasks by status, priority, and due date.
