An exercise in RESTful APIs