Skip to content

imaerials/api-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rest API Test

One of many practice for a NodeJs Rest Api using Passport JS and JWT as Authentication.

Requirements

  • MongoDB
  • Run NPM Install

Database

Start mongo DB service

sudo systemctl start mongod

Api Routes

Request Address
GET localhost:3000/
GET localhost:3000/users/list
GET localhost:3000/products/list
GET localhost:3000/products
POST localhost:3000/users/create
POST localhost:3000/users/login
POST localhost:3000/products/add

To test the API, Postman or similar is recommended. Set Content-Type as "application/x-www-form-urlencoded" in "Headers" and "Body" as "x-www-form-urlencoded"

Starting the App

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published