defined rest api for todo list