This is The server side documentation of Pc Mania. Pc mania is a modern e-commerce type web application with a single seller. The main concept is Only Admin can sell the product. And User can Buy and Give review to the products.
This backend is hosted on Vercel. Live link: https://pc-mania.vercel.app/api/v1/
Live Website : https://pcmania.vercel.app
- Create user:
/user/create-user
(POST) - Login user:
/user/login
(POST) - Get single user:
/user/:id
(POST) - Get all users:
/user/all-users
(GET)
name: string
email: string
password: string
image: string
role: string
- Create product:
/product/create-product
(POST) - Get all products :
/product/all-products
(GET) - Get Single Product:
/product/:id
(GET) - Get Products as Category:
/product?query=name
(GET)
name: string
description: string
category: string
image: string
price: number
stock: boolean
- Create order:
/order/create-order
(POST)\ - Get all orders:
/order/all-orders
(GET) - Get Single Orders:
/order/:id
(GET)
userId: string
orderItems: object[],
userDetails: IOrderDetails[]
- Get Cancel Orders :
/cancel/all-canceled-order
(GET) - Get Single Cancel Order:
/cancel/:id
(GET) - Cancel Order:
/cancel/:id
userId: string
orderDetails: {}
- Create Delivered:
/delivered/
(POST) - Get all Delivered:
/delivered/all-delivered
(GET)
orderId: string
orderDetails: {}
This Is It ============