kallyas / productsapp

A simple RESTful API

Home Page:https://api-productsapp.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

productsapp

Codacy Badge api build

A simple RESTful API

Preriquisites

Node Js

Mongo DB

Usage

Clone this repository by runing

git clone https://github.com/kallyas/productsapp.git

Install dependencies

npm i

Environment Variables

create a .env file

PORT= specify your PORT Number
MONGODB_URL= Specify the URL of your mongo db

start the app

npm run start

Create A Product

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

MIT

About

A simple RESTful API

https://api-productsapp.herokuapp.com/

License:MIT License


Languages

Language:JavaScript 99.6%Language:Procfile 0.4%