Skip to content

Commit ba68050

Browse files
committed
chore(spec): update account endpoint
add user data to response for login/register
1 parent 2022da6 commit ba68050

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

src/assets/restapi.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,18 @@
6565
"serverMessage":{
6666
"success":{
6767
"status":200,
68-
"description":"Returns the authtoken of registered account.",
68+
"description":"Returns the info of registered account.",
6969
"data":{
70-
"authToken":"392c2a901720d24e26be260ec331632f"
70+
"authToken":"392c2a901720d24e26be260ec331632f",
71+
"user": {
72+
"accountId":1,
73+
"avatar":"29.jpg",
74+
"languages":"EN, RU",
75+
"lastOnline": "2018-04-04T00:00:00",
76+
"nickname": "AlexAnder",
77+
"registerDate": "2018-01-01T00:00:00",
78+
"statusInfo": "Life begins at the end of your comfort zone."
79+
}
7180
}
7281
},
7382
"errors":[{
@@ -163,9 +172,18 @@
163172
"serverMessage":{
164173
"success":{
165174
"status":201,
166-
"description":"Returns the authtoken of newly registered account.",
175+
"description":"Returns the info of newly registered account.",
167176
"data":{
168-
"authToken":"392c2a901720d24e26be260ec331632f"
177+
"authToken":"392c2a901720d24e26be260ec331632f",
178+
"user": {
179+
"accountId":1,
180+
"avatar":"29.jpg",
181+
"languages":"EN, RU",
182+
"lastOnline": "2018-04-04T00:00:00",
183+
"nickname": "AlexAnder",
184+
"registerDate": "2018-01-01T00:00:00",
185+
"statusInfo": "Life begins at the end of your comfort zone."
186+
}
169187
}
170188
},
171189
"errors":[{

0 commit comments

Comments
 (0)