- some extra input validation & sanitization (use joi)
- remove repeated code blocks -> refactor into Mediator design pattern
X-In the Root Directory(first time only):
sudo docker-compose build
1-To run the api -> sudo docker-compose up
2-To run mocha tests -> sudo docker-compose -f docker-compose-test.yml up
1.The project is coded strictly using callbacks
all of the requests are ->POST
send the body as of the req as 'application/x-www-form-urlencoded'
1.localhost:8080/api/v1/createcompany
.displayName
2.localhost:8080/api/v1/updatecompany
.displayName
.toUpdateName
3.localhost:8080/api/v1/company/createworkspace
.companyName
.workSpaceName
4.localhost:8080/api/v1/company/updateworkspace
.companyName
.workSpaceName
.toUpdateName
5.localhost:8080/api/v1/company/workspace/addUser
.companyName
.workSpaceName
.email
.role : has to be {admin OR basic}
6.localhost:8080/api/v1/company/workspace/removeUser
.companyName
.workSpaceName
.email: