https://eshop7-backend.herokuapp.com/api/v1/users/
Get all users in database.
Sample response:
[
{
_id: '617d397be09dfe7134677301',
name: 'Mohit',
email: 'mohit@gmail.com',
phone: '9876543210',
password:
'$2b$10$UpG.fwBNDkSn2CTh7/3syujXPClYV.e9A1mxKVxFFkw7WMnPVxhj6',
__v: 0,
},
{
_id: '617d8a2951df31b81dd75c07',
name: 'Mohit Yadav',
email: 'mohit2@gmail.com',
phone: '9123456780',
password:
'$2b$10$u21orCENeGkgCe843fysneJAycZV01qoo88j4.ubmAOxJzJZr4tae',
__v: 0,
},
];
Add a new user in database.
Request body:
- name: name of user
- email: email id of user
- phone: phone number of user
- pwd: paswword of user
- pwdConfirm: password again for confirmation
Sample response:
{
"name": "Mohit Yadav",
"email": "mohit10@gmail.com",
"phone": "9123456789"
}
- Update a user with given id.
- Refer codebase for details.
- Delete a user with given id.
- Refer codebase for details.
- Generate jwt for user and return jwt along with user information.
- Refer codebase for details.
- Verify jwt, generate and return new jwt along with user information.
- Refer codebase for details.
- Currently work in progress
https://eshop7-backend.herokuapp.com/api/v1/products/
Get all products in database.
Sample response:
[]