File tree Expand file tree Collapse file tree 2 files changed +308
-277
lines changed
Expand file tree Collapse file tree 2 files changed +308
-277
lines changed Original file line number Diff line number Diff line change 6767 "status" :200 ,
6868 "description" :" Returns the info of registered account." ,
6969 "data" :{
70- "authToken " :" 392c2a901720d24e26be260ec331632f" ,
70+ "access_token " :" 392c2a901720d24e26be260ec331632f" ,
7171 "user" : {
7272 "accountId" :1 ,
7373 "avatar" :" 29.jpg" ,
174174 "status" :201 ,
175175 "description" :" Returns the info of newly registered account." ,
176176 "data" :{
177- "authToken " :" 392c2a901720d24e26be260ec331632f" ,
177+ "access_token " :" 392c2a901720d24e26be260ec331632f" ,
178178 "user" : {
179179 "accountId" :1 ,
180180 "avatar" :" 29.jpg" ,
202202 }
203203 }]
204204 }
205- },{
206- "verb" :" PATCH" ,
207- "name" :" /api/account" ,
208- "summary" :" Validate a token of exists account." ,
209- "description" :" Checks an auth token and returns status 200 if success else returns 404." ,
210- "fields" :[{
211- "name" :" authToken" ,
212- "type" :" string" ,
213- "description" :" " ,
214- "required" :true ,
215- "validators" :[
216- {"name" :" maxLength" ,"value" :64 }
217- ]
218- }],
219- "clientMessage" :{
220- "login" : " admin2018" ,
221- "password" : " 12345678asdf"
222- },
223- "serverMessage" :{
224- "success" :{
225- "status" :200 ,
226- "description" :" If the token is valid." ,
227- "data" :null
228- },
229- "errors" :[{
230- "status" :404 ,
231- "description" :" If the token was not found." ,
232- "data" :{
233- "errorCode" : 404 ,
234- "message" : " NotFound"
235- }
236- }]
237- }
238205 }]
239206 },{
240207 "icon" :" settings" ,
You can’t perform that action at this time.
0 commit comments