Skip to content

gouravshah/agentic-workflow-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Todo API

This is a simple Flask-based API for managing a list of todos.

Endpoints

GET /todos

  • Description: Retrieve the list of todos.
  • Response: JSON array of todos.

POST /todos

  • Description: Add a new todo to the list.
  • Request Body: JSON object with a todo field.
  • Response: Confirmation message.

DELETE /todos/<todo_id>

  • Description: Delete a todo by its index.
  • Response: Confirmation message and the deleted todo.

Requirements

  • Python 3.9
  • Flask==2.3.2

Running Locally

  1. Install dependencies:
    pip install -r requirements.txt
  2. Run the application:
    python app.py

Docker

Build the Docker Image

docker build -t flask-todo-api .

Run the Docker Container

docker run -p 5000:5000 flask-todo-api

About

agentic-workflow-demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published