Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.56 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.56 KB

REST API

REST API em Node.js, Express.js and MongoDB - Product registration and handling API

NODEMONGODBEXPRESSGITHUB

Technologies

  • NodeJs
  • Insomnia
  • Container Docker MongoDB

Dependecies

  • Express
  • Mongoose
  • Nodemon
  • Mongoose-paginate
  • Cors
  • Require-dir

Usage

$ git clone https://github.com/naldomadeira/node-api.git
$ cd node-api
$ npm install

Modify the MongoDB connection string according to your environment

$ npm start

REST architecture

The following is a generic localhost configuration on port: 3000 Note: base_url: http://localhost:3000/api

List of all product - GET: base_url/products

Create a product - POST: base_url/products

List a product - GET: base_url/products/:id

Update a product - PUT: base_url/products/:id

Delete a product - Delete base_url/product/:id

Tests

They were entirely carried out in the automated environment of insomnia. Insomnia is an extremely useful tool for testing manually or automating the testing of any REST API.

insomnia

Credits

This API was developed by Naldo Madeira