Added the ability to call the api for a list of endpoints