An example ChatGPT plugin based on the documented example.
Run the plugin:
python3 app.py
Create a TODO for a user:
curl -X POST http://localhost:5002/todos/<my_test_username> \
-H 'Content-Type: application/json' -d '{"todo": "vacum"}'
Get the TODOs for the user:
curl http://localhost:5002/todos/<my_test_username>
["vacum"]
should be returned.
Delete the TODO:
curl -X DELETE http://localhost:5002/todos/<my_test_username> \
-H 'Content-Type: application/json' -d '{"todo_idx": 0}'
Verify the TODO has been deleted:
curl http://localhost:5002/todos/<my_test_username>
[]
should be returned.