restful getperson function