protected function getRequestData()
    {
        if (Yii::$app->request->method === 'POST') {
            return $this->getRealPOSTData();
        }
        if (Yii::$app->request->method === 'GET') {
            $requestData = Yii::$app->request->get();
            unset($requestData['action']); // delete service GET param
            return $requestData;
        }

        throw new BadRequestHttpException('Unsupported request method.');
    }