Skip to content

VKlapan/incode-users-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

task

Create a tiny server app based on Node.js. The app should implement simple organization user structure management operations. The following user roles should be supported: a. Administrator (top-most user) b. Boss (any user with at least 1 subordinate) c. Regular user (user without subordinates) Each user except the Administrator must have a boss (strictly one). The following REST API endpoints should be exposed:

  1. Register user
  2. Authenticate as a user
  3. Return list of users, taking into account the following:
  • administrator should see everyone
  • boss should see herself and all subordinates (recursively)
  • regular user can see only herself
  1. Change user's boss (only boss can do that and only for her subordinates)

API

https://documenter.getpostman.com/view/10799551/2s8Z75UWBh#intro

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published