NeuKart-API is a basic e-commerce backend service for NeuKart.
Server: Node, Express, Mongoose
POST users/login
Body | Type | Description |
---|---|---|
password |
string |
Required. user password |
email |
string |
Required. user email |
POST users/signup
Body | Type | Description |
---|---|---|
name |
string |
Required. user name |
email |
string |
Required. user email |
password |
string |
Required. user password |
mobileNumber |
string |
Required. user mobile number |
gender |
string |
Optional. user gender |
dateOfBirth |
date |
Optional. user dateOfBirth |
address |
string |
Optional. user's address |
GET /products
GET /products/${productId}
Parameter | Type | Description |
---|---|---|
productId |
string |
Required. Id of product to fetch |
POST products/addProduct
Body | Type | Description |
---|---|---|
productName |
string |
Required. product name |
description |
string |
Required. product description |
category |
string |
Required. product category |
company |
string |
Required. product company |
price |
number |
Optional. product price |
mrp |
number |
Required. product mrp |
discount |
number |
Optional. product discount in percent |
offer |
string |
Optional. product offer if any |
features |
string |
Optional. product features |
availability |
boolean |
Optional. product availability |
rating |
number |
Optional. product rating |
imageUrl |
string |
Optional. product imageUrl |
POST /cart/add/${userId}/${productId}
Parameter | Type | Description |
---|---|---|
productId |
string |
Required. productId to add in cart |
userId |
string |
Required. userId of user |
DELETE /cart/remove/${userId}/${productId}
Parameter | Type | Description |
---|---|---|
productId |
string |
Required. productId to remove from cart |
userId |
string |
Required. userId of user |
POST /cart/${userId}
Parameter | Type | Description |
---|---|---|
userId |
string |
Required. userId of user |
POST /wishlist/add/${userId}/${productId}
Parameter | Type | Description |
---|---|---|
productId |
string |
Required. productId to add in wishlist |
userId |
string |
Required. userId of user |
DELETE /wishlist/remove/${userId}/${productId}
Parameter | Type | Description |
---|---|---|
productId |
string |
Required. productId to remove from wishlist |
userId |
string |
Required. userId of user |
POST /wishlist/${userId}
Parameter | Type | Description |
---|---|---|
userId |
string |
Required. userId of user |