Loading Depth Study
Preparing your workspace
HTTP methods communicate the intended action for a request.
GET is commonly used to retrieve data, POST to create a new resource or trigger a server-side operation, PUT to replace a resource representation, PATCH to partially update a resource, and DELETE to remove a resource. Choosing methods consistently makes APIs easier for clients and developers to understand. The exact server behavior should always be documented because real APIs may have domain-specific requirements.
A course API can use GET /courses to list courses, POST /courses to create one, PATCH /courses/:id to update selected fields, and DELETE /courses/:id to remove it.
GET /api/courses POST /api/courses GET /api/courses/:id PATCH /api/courses/:id DELETE /api/courses/:id
The API provides predictable operations for reading, creating, updating, and deleting courses.