added REST API boilerplate