Skip to content

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

Notifications You must be signed in to change notification settings

naldomadeira/node-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published