src/Api/Controller/Note.php
protected function getModelClassAndId()
    {
        $oInput         = Factory::service('Input');
        $sModelName     = $oInput->get('model_name') ?: $oInput->post('model_name');
        $sModelProvider = $oInput->get('model_provider') ?: $oInput->post('model_provider');
        $iItemId        = (int) $oInput->get('item_id');

        try {
            $oModel = Factory::model($sModelName, $sModelProvider);
            $sModel = get_class($oModel);
        } catch (\Exception $e) {
            throw new ApiException('"' . $sModelProvider . ':' . $sModelName . '" is not a valid model');
        }

        return [$sModel, $iItemId];
    }
protected function getModelClassAndId()
    {
        $oInput         = Factory::service('Input');
        $sModelName     = $oInput->get('model_name') ?: $oInput->post('model_name');
        $sModelProvider = $oInput->get('model_provider') ?: $oInput->post('model_provider');
        $iItemId        = (int) $oInput->get('item_id');

        try {
            $oModel = Factory::model($sModelName, $sModelProvider);
            $sModel = get_class($oModel);
        } catch (\Exception $e) {
            throw new ApiException('"' . $sModelProvider . ':' . $sModelName . '" is not a valid model');
        }

        return [$sModel, $iItemId];
    }
Returns an arry of the model's class name and the item's ID

@return array
@throws ApiException
@throws FactoryException