find endpoint by name