See the Comments section for a detailed explanation on how this project works.
Build an API service in Flask to manage a simple To-Do list.
The application provides APIs only. There is no web UI or client application for this service, only a stand alone service with RESTful APIs. The application must be able to:
- Use username and password (or equivalent) to log in users
- Use cookies (or effective alternative) to authenticate all API requests
- Create a new todo item (containing a text description)
- List a user’s set of todo items
- Mark any single todo item as completed
- Delete any single todo item
- Log a user out
- Run using Python 3.6 or higher
- Use JSON for data exchange
Considerations:
- Creation of new users is out of scope. The set of users can be hardcoded (at least one user)
- The APIs should be RESTful
- A quick, sure and repeatable proof that every element of the code works as intended, should be delivered alongside the service
- Any libraries and frameworks can be used as long as they are publicly available or included with the code.