adding a GET method for the links API