modified get rest service to return contact acording to the pathparam