-
Notifications
You must be signed in to change notification settings - Fork 0
์ ์
Lucas edited this page Dec 2, 2019
·
2 revisions
GET /api/result/scores/:userIdx
Context-type : application/json
Sucess
{
"success": true,
"data": [
{
"userIdx": 1,
"id": "hyun",
"password": "1234",
"nickname": "์กด๋ฒ",
"six": 50,
"one": 0,
"two": 80,
"three": 80,
"four": 80,
"five": 50,
"session": null,
"seven": 50,
"eight": 50,
"nine": 50,
"total": 490
}
]
}
Fail
{
"success": false,
"message": "์ ์ ์กฐํ ์คํจ"
}
PUT /api/result/scores
Context-type : application/json
{
"stage": 7,
"score": 35,
"userIdx": 2
}
Sucess
{
"success": true,
"message": "์ ์ ์์ฑ ์ฑ๊ณต",
"data": {
"fieldCount": 0,
"affectedRows": 1,
"insertId": 0,
"serverStatus": 2,
"warningCount": 0,
"message": "(Rows matched: 1 Changed: 1 Warnings: 0",
"protocol41": true,
"changedRows": 1
}
}
Fail
{
"success": false,
"message": "์ ์ ์์ฑ ์คํจ"
}
GET /api/result/ranks
Context-type : application/json
Sucess
{
"success": true,
"data": [
{
"id": "hyun",
"total": 490
},
]
}
Fail
{
"success": false,
"message": "๋ฑ์ ์ ์ฒด ์กฐํ ์คํจ"
}