Get list of all endpoints on the domain.
		
		:param str typeOfEndpoint: Optional filter endpoints returned by type
		:return: list of all endpoints
		:rtype: asyncResult

def getEndpoints(self,typeOfEndpoint=""):
		"""
		Get list of all endpoints on the domain.
		
		:param str typeOfEndpoint: Optional filter endpoints returned by type
		:return: list of all endpoints
		:rtype: asyncResult
		"""
		q = {}
		result = asyncResult()
		if typeOfEndpoint:
			q['type'] = typeOfEndpoint
			result.extra['type'] = typeOfEndpoint
		data = self._getURL("/endpoints", query = q)
		result.fill(data)
		if data.status_code == 200:
			result.error = False
		else:
			result.error = response_codes("get_endpoints",data.status_code)
		result.is_done = True
		return result