created simple REST API for todos