['post'] ]; } /** * @throws InvalidConfigException * @throws ServerErrorHttpException */ public function actionCreateInterviewRequest(): InterviewRequest { $InterviewRequestModel = InterviewRequestService::createInterviewRequest(Yii::$app->getRequest()->getBodyParams()); if ($InterviewRequestModel->errors) { throw new ServerErrorHttpException(json_encode($InterviewRequestModel->errors)); } return $InterviewRequestModel; } }