HTTP methods for RESTful services

The use of HTTP verbs allows a clear understanding of what an operation is going to do. In general, the primary or most commonly used HTTP verbs are POST, GET, PUT, PATCH, and DELETE, which stand for create, read, update (PATCH and PUT), and delete, respectively. Of course, there are also a lot of other verbs, but they are not used as frequently:

Method HTTP method description
GET GET is the most common HTTP verb. Its function is to retrieve data from a server at the specified resource.

For example, a request made to the GET https://<HOST>/customers endpoint will retrieve all customers in a list format (if there is no pagination).

There is also the possibility of retrieving a specific customer such as ...

Get Hands-On RESTful Web Services with TypeScript 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.