Part 1 of moving to RESTful API