Brief
We need an api for tracking empoyees in multiple organizations. Each organization
has
- name
- departments.
Departments
have
- names
- employees.
Employees
have basic personal information and status.
Status
is basically a role of an employee inside that department (e.g. manager, developer, boss, etc). To change status title(e.g. 'manager') to a different one (e.g. 'Human resources manager') I should update Status
entity and see updated value for all employees that are related to this entity.
- all organization fields
- departments count
- total employees count
- all dep. fields
- total count
- total employees count for each department
- all fields
Objectives (milestones/steps)
- optional: set up docker
- Set up Postgresql/MySql database
- Create Models
- Create simple api
- Serializers
- Views
- Urls
- Add filters by name ond ordering
- Set up user (administrator) models (user != employee)
- user model has (id, name, email, [...any neccessary]) fields
- passwordless (access token) login:
- user sends post request with email address
- email with sign in token is sent to user
- token is valid and is connected to user
- using this token user can make requests to the api (access token authorization)
- add permissions
HOW TO
- virtualenv
- pip3 install -r requirements.txt
- cd main
- ./manage.py runserver
working folder is api