A simple RESTful API
Clone this repository by runing
git clone https://github.com/kallyas/productsapp.git
Install dependencies
npm i
create a .env
file
PORT= specify your PORT Number
MONGODB_URL= Specify the URL of your mongo db
start the app
npm run start
End Point | Method | Params | Data Type |
---|---|---|---|
/products/create |
POST | None |
None |
- Request.Body
{
"name": "Iphone",
"price": 50000
}
-
Request Headers
None
Success Response:
Status: 200 OK
Sample Content:
{
"status": 200,
"message": "Product created success fully!"
}
License