RESTful service implementation part1