Django/Python recruitment task #1

in code •  6 years ago  (edited)

django-neg.sh.png
Few months ago I considered change my job. I got this task in recruitment process.

Task:

  1. create REST API application using Django Rest Framework
  2. application should have model classes: User and Company
  3. User fields: username, password, list of roles
  4. Company fields: name, tel, email
  5. Provide additional endpoint to add new user POST /api/extra/users should be no permission checkin for this endpoint
  6. Support two Roles Admin and Manager
  7. Admin can create and modify Admins and Managers. Managers can't edit users
  8. Admin can create Company
  9. Manager can only update Company information
  10. authentication should be jwt based
  11. 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?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!