add user-questionnaire, response, question, answers to api

This commit is contained in:
iIronside
2021-10-28 10:46:59 +03:00
parent 84ec9ef9c7
commit 79c197f673
9 changed files with 1743 additions and 2 deletions

View File

@ -38,16 +38,28 @@ return [
],
'components' => [
'response' => [
'formatters' => [
'json' => [
'class' => 'yii\web\JsonResponseFormatter',
'prettyPrint' => YII_DEBUG,
'encodeOptions' => JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE,
],
],
],
'request' => [
'csrfParam' => '_csrf-frontend',
'baseUrl' => '',
'parsers' => [
'application/json' => 'yii\web\JsonParser',
'application/xml' => 'yii\web\XmlParser',
],
],
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
'identityCookie' => ['name' => '_identity-frontend', 'httpOnly' => true],
],
'session' => [
@ -66,7 +78,6 @@ return [
'errorHandler' => [
'errorAction' => 'site/error',
],
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,