Ecommercify API V1.0.0
- Variables
- URL : ecommercify-backend.herokuapp.com/api
Customer API
- SignUp Customer : To SignUp Customer
- Type :
POST
- Route : URL/customer/signup
- Required Auth:
NO
- Body :
- name(R) : Name of Customer
- email(R) : Email of Customer
- contactNo: Contact Number of Customer
- password(R): Password of Customer (Atleast 6 character Long)
- Return :
JWT
Token
- Type :
- Login Customer : To SignUp Customer
- Type :
POST
- Route : URL/customer/login
- Required Auth:
NO
- Body :
- username(R) : Email/Contact No of Customer
- password(R): Password of Customer (Atleast 6 character Long)
- Return :
JWT
Token
- Type :
- Get Customer By username:
- Type :
GET
- Route : URL/customer/:username
- Required Auth:
ADMIN
- Param:
- username(R) : Email/Contact No of Customer
- Return : Customer Detail
- Type :
- Get Customer By PageNo and PageCount:
- Type :
GET
- Route : URL/customer
- Required Auth:
ADMIN
- Query:
- perPage(R): No of Customer needed per Page (
DEFAULT
= 0) - pageNo(R): Page No
- perPage(R): No of Customer needed per Page (
- Return : Customer Details[]
- Type :
- Update Customer By username:
- Type :
PATCH
- Route : URL/customer/:username
- Required Auth:
ADMIN
- Param:
- username
String
(R) : Email/Contact No of Customer
- username
- Body
- name(
String
) : Name of Customer - email(
String
): Email Of Customer - contactNo(
String
): Contact No Of Customer - isBlackListed(
Boolean
):To Blacklist Customer
- name(
- Return : Success Message
- Type :
- Delete Customer By username:
- Type :
DELETE
- Route : URL/customer/:username
- Required Auth:
ADMIN
- Param:
- username(R) : Email/Contact No of Customer
- Return : Success Message
- Type :