Django/Python recruitment task #1
Few months ago I considered change my job. I got this task in recruitment process.
Task:
- create REST API application using Django Rest Framework
- application should have model classes: User and Company
- User fields: username, password, list of roles
- Company fields: name, tel, email
- Provide additional endpoint to add new user POST /api/extra/users should be no permission checkin for this endpoint
- Support two Roles Admin and Manager
- Admin can create and modify Admins and Managers. Managers can't edit users
- Admin can create Company
- Manager can only update Company information
- authentication should be jwt based
- Add tests to the application
Solution:
https://gitlab.com/kjaworowski/recruitment_task_1
I want share with you each recruitment task what i will get.
What do you think about my code and this idea?