Write a simple working ToDo application written in Python with use of Fast Api and…
- User
Write a simple working ToDo application written in Python with use of Fast Api and Swagger. The application will start on http://localhost:8080.
The API documentation is available via Swagger UI. After running the application, navigate to http://localhost:8080/swagger/index.html to view and interact with the API documentation.
API Endpoints:
- GET /tasks: Get all tasks
- GET /tasks/{id}: Get a task by ID
- POST /tasks: Create a new task
- PUT /tasks/{id}: Update a task by ID
- DELETE /tasks/{id}: Delete a task by ID
Example Task JSON: { "ID": "string", "Title": "string", "Description": "string", "Done": false, "ToDo": "2025-02-26T00:00:00Z", "CreatedAt": "2025-02-26T00:00:00Z", "UpdatedAt": "2025-02-26T00:00:00Z", "DeletedAt": "2025-02-26T00:00:00Z" }
Make sure code works. Make sure that you will tell all the code in all of the files that project has. Make sure to leave instructions for all possible errors and problems that may come while installation, running of the application and more. Database is stored in RAM memory, but make sure that it could be changed to save database in PostgreSQL.
- Assistant
- User
Write a simple working ToDo application written in Python with use of Fast Api and Swagger. The application will start on http://localhost:8080.
The API documentation is available via Swagger UI. After running the application, navigate to http://localhost:8080/swagger/index.html to view and interact with the API documentation.
API Endpoints:
GET /tasks: Get all tasks GET /tasks/{id}: Get a task by ID POST /tasks: Create a new task PUT /tasks/{id}: Update a task by ID DELETE /tasks/{id}: Delete a task by ID Example Task JSON: { "ID": "string", "Title": "string", "Description": "string", "Done": false, "ToDo": "2025-02-26T00:00:00Z", "CreatedAt": "2025-02-26T00:00:00Z", "UpdatedAt": "2025-02-26T00:00:00Z", "DeletedAt": "2025-02-26T00:00:00Z" }
Make sure code works. Make sure that you will tell all the code in all of the files that project has. Make sure to leave instructions for all possible errors and problems that may come while installation, running of the application and more. Database is stored in RAM memory, but make sure that it could be changed to save database in PostgreSQL.
- Assistant