add function to get Passing Record from the REST API