Loading Depth Study
Preparing your workspace
HTTP methods describe the intended action of a request, such as retrieving, creating, updating, or deleting resources.
Common methods include GET for retrieving information, POST for submitting or creating data, PUT for replacing a resource, PATCH for partial updates, and DELETE for removing a resource. The correct method helps communicate the purpose of an operation and is important for API design.
A learning application may use GET to retrieve a course, POST to create one, PATCH to update its title, and DELETE to remove it.
GET /api/courses/10 POST /api/courses PATCH /api/courses/10 DELETE /api/courses/10
Different HTTP methods communicate different intended operations for the same or related resources.