Q2What are the roles of the HTTP methods in RESTful APIs (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS)
GET reads, POST creates, PUT replaces, PATCH partially updates, DELETE removes, HEAD checks headers, and OPTIONS reports which methods are allowed.