Hi, This is a simple json db API for a shop app. You can use this API for testing purpose. Here is using Node & Express Server and using json database system for all data.
$ git clone https://github.com/shb-services/REST-API-for-shop-app.git
- Node js
- Express js
- nodemon
- dotenv
- express
- colors
$ npm i packages_name
https://documenter.getpostman.com/view/22686421/2s83zfS6Rh
- User
- Product
- Category
- Tag
In this below console, there is showing "desc, name and access".
- desc
- "desc" is to describe details.
- name
- "name" is Method & API link.
- access
- "access" is who can access this system.
/**
* desc Create a user data
* name POST /api/v1/user
* access public
*/
// need keys to create a user
name : "Name",
email : "Email",
cell : "Cell",
location : "Location",
zip_code : "Zip Code",
shipping_address : "Shipping Address",
billing_address : "Billing Address"
/**
* desc Create a product data
* name POST /api/v1/product
* access public
*/
// need keys to create a product
name : "Name",
slug : "Slug",
regular_price : "Regular Price",
sale_price : "Sale Price",
stock : "Stock",
short_desc : "Short Description",
long_desc : "Long Description",
category : "Category",
tag : : "Tag"
/**
* desc Create a category data
* name POST /api/v1/category
* access public
*/
// need keys to create a category
name : "Name",
slug : "Slug",
photo : "Photo"
/**
* desc Create a tag data
* name POST /api/v1/tag
* access public
*/
// need keys to create a tag
name : "Name",
slug : "Slug",