Spelling mistake "Endpoint" not "EndPoint"