src/ngrest/plugins/SelectRelationActiveQuery.php
protected function getRelationApiEndpoint()
    {
        // build class name
        $class = $this->_query->modelClass;
        // fetch menu api detail from endpoint name
        $menu = Yii::$app->adminmenu->getApiDetail($class::ngRestApiEndpoint());
        
        if (!$menu) {
            throw new InvalidConfigException("Unable to find the API endpoint, maybe insufficent permission or missing admin module context (admin module prefix).");
        }
        
        // @todo what about: admin/
        return 'admin/'.$menu['permissionApiEndpoint'];
    }
protected function getRelationApiEndpoint()
    {
        // build class name
        $class = $this->_query->modelClass;
        // fetch menu api detail from endpoint name
        $menu = Yii::$app->adminmenu->getApiDetail($class::ngRestApiEndpoint());
        
        if (!$menu) {
            throw new InvalidConfigException("Unable to find the API endpoint, maybe insufficent permission or missing admin module context (admin module prefix).");
        }
        
        // @todo what about: admin/
        return 'admin/'.$menu['permissionApiEndpoint'];
    }
protected function getRelationApiEndpoint ( ) { // build class name $ class = $ this -> _query -> modelClass ; // fetch menu api detail from endpoint name $ menu = Yii :: $ app -> adminmenu -> getApiDetail ( $ class :: ngRestApiEndpoint ( ) ) ; if ( ! $ menu ) { throw new InvalidConfigException ( "Unable to find the API endpoint, maybe insufficent permission or missing admin module context (admin module prefix)." ) ; } // @todo what about: admin/ return 'admin/' . $ menu [ 'permissionApiEndpoint' ] ; }
Get the admin api endpoint name.

@return string
@since 1.2.2
Get the admin api endpoint name .