Skip to content

Paypal Project - Rest Api for Product Mgt System using Node.js as Framework

Notifications You must be signed in to change notification settings

shankyjoshi/Rest_Api-Product_Management_System

Repository files navigation

REST API-Node.js Server for Product Management System

Overview

First I have created my Api at Swagger.io . You can find by clicking on this link Product_Mgt - API then .. By using the OpenAPI-Spec from a remote server, I generated my server stub then I have written logic to implement each api endpoints . You can find my code in each files of service folder. I am using JSON files to store data. You can find my yaml file inside API folder .

JSON files - To store data

  • Products.json -- To store details about the products in the Inventory
  • Reviews.json -- To store reviews of each products in the Inventory
  • Tokens.json -- To store temporary token generated to verify authenticated and authorized user
  • Users.json -- To store all the users details

Running the server

To run the server and install all the required modules(Scripted) , run:

npm start

To view the Swagger UI interface:

open http://localhost:8080/docs

Directions of Use :

  • Generate Access token first to access api endpoints
    • Default user:
      • username: shank -- Use this username to get access token by doing get request to /users/access api endpoint
    • Else you can Create new user by doing post request to /users
      • Now use that username to do get request to /users/access to generate your access token
  • Use Access token generated in above steps to authorize and access Api endpoints

About

Paypal Project - Rest Api for Product Mgt System using Node.js as Framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published