This repo use for mentoring nodejs and reactjs integration api training
- clone this project and move to project directory
- install all the dependencies required:
npm install or yarn install
- Create
.env
file (copy .env.example
and fill it)
- Create
config.json
on config/
directory (copy config.json.example
and fill it)
- Use the sequelize-cli command for database migration :
npx sequelize-cli db:migrate
- Run this Project
- Finish
Query Parameter |
Type |
Description |
page |
integer |
page of data |
search |
string |
search data by email or firstName |
sortBy |
string |
sortBy email or firstName |
sort |
string |
sort ASC or DESC |
Parameter |
Type |
Description |
uuid |
string |
Required. uuid of user to fetch |
Body Parameter |
Type |
Description |
firstName |
string |
Required. firstName of store user |
lastName |
string |
Required. lastName of store user |
email |
string |
Required. email of store user |
address |
string |
Required. address of store user |
phone |
integer |
Required. phone of store user |
Parameter |
Body Parameter |
Type |
Description |
uuid |
- |
string |
Required. uuid for find user |
- |
firstName |
string |
Optional. firstName of store user |
- |
lastName |
string |
Optional. lastName of store user |
- |
email |
string |
Optional. email of store user |
- |
address |
string |
Optional. address of store user |
- |
phone |
integer |
Optional. phone of store user |
DELETE /api/users/${uuid}
Parameter |
Body Parameter |
Type |
Description |
uuid |
- |
string |
Required. uuid for find user |
MIT