NodeJSLessons

The purpose of this course is to learn how to use NodeJs and use it to build an API from scratch.

Lien GitHub (Public repository)

How use this repository ?


API ENDPOINT

Get all product

Method : GET | Endpoint : http://localhost:3000/products

Get a specific product

Method : GET | Endpoint : http://localhost:3000/products/{name}

Delete a specific product

Method : DELETE | Endpoint : http://localhost:3000/products/{name}

Add a product

Method : POST | Endpoint : http://localhost:3000/products
  • Product format :
{
  "name" : {name}
  "quantity": {quantity}
}
  • Example :
{
  "name" : "Fraise"
  "quantity": 500
}