-
Notifications
You must be signed in to change notification settings - Fork 3
러닝기록 결과전송
famer9716 edited this page Jul 17, 2020
·
4 revisions
메소드 | 경로 | 설명 |
---|---|---|
POST | /record/run/post | 매칭 상대방 데이터 |
![record all](https://github.com/RunnersHi/RunnersHi_Server/raw/master/runners_server/readmeimg/FinishRunActivity.png)
{
"distance" : 5000,
"time" : 3600,
"result" : 1,
"created_time" : "2020-07-12 17:30:20",
"end_time" : "2020-07-12 18:30:20",
"coordinates" : [
{"latitude" : 37.6759, "longitude" : 126.7254},{"latitude" : 37.6742, "longitude" : 126.7269}
]
}
- distance: 유저가 달린 거리 (m 단위)
- time: 유저가 달리는 시간 (초 단위)
- result: 결과 (1 : 승리, 2 : 패배, 3 : 탈주패, 5 : 무승부)
- created_time : 출발시간
- end_time : 러닝 끝나는 시간
- coordinates : 좌표 배열
👍 success
{
"status": 200,
"success": true,
"message": "post run",
"result": {
"run_idx": 167,
"game_idx": 120
}
}
👎 fail