Very basic e-commerce app api to grasp the basics of crud with express and mongodb
https://giyushop.onrender.com/v1/auth/register
Headers
Content-Type
Value
Content-Type
application/json
{
"fullName" : " Eddy Giyu" ,
"userName" : " Tomioka" ,
"password" : " codegiyu670" ,
"role" : " user"
}
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
https://giyushop.onrender.com/v1/auth/login
Headers
Content-Type
Value
Content-Type
application/json
{
"userName" : " Codegiyu" ,
"password" : " codegiyu67"
}
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
End-point: Create Shopitem
https://giyushop.onrender.com/v1/shop/add-product
Headers
Content-Type
Value
Content-Type
application/json
Headers
Content-Type
Value
Authorization
{
"name" : " Smart unisex Classic Sneakers" ,
"description" : " The comfort and class you need to take on the world" ,
"price" : 95000 ,
"isInStock" : true
}
๐ Authentication bearer
Param
value
Type
token
string
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
End-point: Get All Products
https://giyushop.onrender.com/v1/shop/products
๐ Authentication bearer
Param
value
Type
token
string
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
End-point: Get Product By Id
https://giyushop.onrender.com/v1/shop/product/651c07082b902338837435c9
๐ Authentication bearer
Param
value
Type
token
string
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
End-point: Update Product
https://giyushop.onrender.com/v1/shop/product/651c07082b902338837435c9
Headers
Content-Type
Value
Content-Type
application/json
{
"name" : " Smart Unisex Classic Sneakers" ,
"description" : " All the comfort and class you need to take on the world" ,
"price" : 9500 ,
"isInStock" : true
}
๐ Authentication bearer
Param
value
Type
token
string
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ
End-point: Delete Product
https://giyushop.onrender.com/v1/shop/product/651b5b89651f4e32439e3955
๐ Authentication bearer
Param
value
Type
token
string
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ