Fixed tests
This commit is contained in:
parent
fff951c8fb
commit
29c8954b21
2 changed files with 13 additions and 1 deletions
|
@ -226,7 +226,7 @@ $utopia->post('/v1/account/sessions')
|
|||
->setStatusCode(Response::STATUS_CODE_CREATED)
|
||||
;
|
||||
|
||||
$response->dynamic($session);
|
||||
$response->json($session->getArrayCopy());
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -21,6 +21,18 @@ class User extends Result
|
|||
'default' => '',
|
||||
'example' => 'John Doe',
|
||||
])
|
||||
->addRule('registration', [
|
||||
'type' => 'integer',
|
||||
'description' => 'User registration date in unix timestamp.',
|
||||
'default' => false,
|
||||
'example' => true,
|
||||
])
|
||||
->addRule('status', [
|
||||
'type' => 'integer',
|
||||
'description' => 'User status. 0 for Unavtivated, 1 for active and 2 is blocked.',
|
||||
'default' => false,
|
||||
'example' => true,
|
||||
])
|
||||
->addRule('email', [
|
||||
'type' => 'string',
|
||||
'description' => 'User email address.',
|
||||
|
|
Loading…
Reference in a new issue