emkbt / DT--Kilbertus--5--ToDoList--

A simple console-based Todo List application where you can add, delete, complete tasks.
MIT License
0 stars 1 forks source link

Added support for the REST API #10

Closed WaterNewt closed 7 months ago

WaterNewt commented 7 months ago

The api.py script, is the REST API itself. I used the Flask framework for this, since that's the one I'm most familiar with. I had to make changes to the main todo_app.py script aswell. I added a user/account system. I also made it so it saves the tasks into a json database file. The todo.json, is the database for the tasks. The users.json, is the database for the users.

I'm still working on the documentation for the API. But each route in the api.py file, has a docstring which shows the basic usage of the method. I should be able to finish the documenation for the API, in about 5-7 days. The docstrings in the code, show curl usage, which can just be typed into the terminal.