simple REST API example for todo app in flask