Python API Assignment - Overview
Python API Assignment - Overview
Python API Assignment - Overview
Summary
You need to create a Python Django/Flask Web API with following specification.
2.You need to use a sql server database. There will be two api sections =
4.TodoController will be protected via authorization of the auth controller header and only
authenticated users will have access to the controller. There will be two roles in the database
for user with different set of access.
User : These users will be able to get list of todo items, when accessing other APIs, they
should get a HTTP 401: Unauthorized error
Admin : Admin users will be able to access all the APIs
5.In AuthController as response to successful login, a JWT token will return in response. The JWT
token should have following fields encoded:
First Name
Last Name
Email
IsActive
Roles
6.The code should be uploaded to a public GitHub repository and its link should be shared
with the moderator or interviewer.
Please document all the controllers and APIs by using proper comments through out the
application
Proper indentation and naming of the variables is highly appreciated
Verbose commit messages will be appreciated
A ReadMe file in the GitHub repo root folder explaining what does the API do and small
documentation of each API can be beneficial
For any doubt or questions, contact your interviewer.
Submission