When we are building RESTful API services, we can use the following methods for a certain actions.
Below we are mentioning a table of API methods, for example, for a Product entity.
Below we are mentioning a table of API methods, for example, for a Product entity.
Method
|
Example EndPoint
|
Meaning
|
GET
|
api/products
|
List of Products
|
GET
|
api/products/{id}
|
View a product
|
POST
|
api/products
|
Create New product
|
PUT
|
api/products/{id}
|
Update a product
|
DELETE
|
api/products/{id}
|
Delete a product
|