rest api for todo manager