code: def get_resource(self, path):
          
          response = self._http_request(path)
          try:
              return response.json()
          except ValueError:
              raise exception.ServiceException("Invalid service response.")
docs: Getting the required information from the API.