Socram94 / NodeJSLessons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
}

About


Languages

Language:JavaScript 99.3%Language:Procfile 0.4%Language:Shell 0.3%