HTTP verbs

The following are basic HTTP verbs used while requesting a REST system for resource interaction:

  • GET: Used to retrieve a specific resource by its identity or a collection of resources
  • POST: Used to create/insert a new resource
  • PUT: Used to update a specific resource by its identity
  • DELETE: Used to remove a specific resource by its identity

Let's try to explore the request/response mechanism in REST for these verbs one by one. We will try to design an e-commerce application with basic operations. In the first phase, we will work on products, which is the core of these types of apps.