-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Team] API 문서 #43
Labels
Milestone
Comments
혹시 이러한 형식으로 줄 수 있으신가요? |
@Limwin94 네네! 가능합니다. |
2번에 팀선택화면 플로우가 이해가 잘 안갑니다 ㅜㅜ 있다가 설명 부탁드려요..! |
주소는 어디로 보내면 될까요? |
4. 게임 진행 화면
{
"success": true,
"response": {
"gameId": 1,
"inning": 1,
"scores": [],
"sbo": {
"strike": 0,
"ball": 0,
"out": 0,
"hit": 0
},
"game": {
"home": {
"id": 1,
"teamId": 1,
"name": "양성우",
"battingAverage": 168,
"pitcher": true
},
"away": {
"id": 6,
"teamId": 2,
"name": "박건우",
"battingAverage": 319,
"pitcher": true
}
},
"bottom": false
},
"error": null
} |
5.Pitch
{
"success": true,
"response": "STRIKE",
"error": null
}
{
"success": true,
"response": {
"gameId": 1,
"inning": 1,
"scores": [],
"sbo": {
"strike": 0,
"ball": 3,
"out": 0,
"hit": 2
},
"game": {
"home": {
"id": 1,
"teamId": 1,
"name": "양성우",
"battingAverage": 168,
"pitcher": true
},
"away": {
"id": 8,
"teamId": 2,
"name": "오재일",
"battingAverage": 293,
"pitcher": false
}
},
"bottom": false
},
"error": null
}
{
"success": true,
"response": {
"gameId": 1,
"inning": 1,
"homeScore" : 3,
"awayScore" : 4,
"sbo": {
"strike": 0,
"ball": 1,
"out": 1,
"hit": 3
},
"game": {
"home": {
"id": 1,
"teamId": 1,
"name": "양성우",
"battingAverage": 168,
"pitcher": true
},
"away": {
"id": 10,
"teamId": 2,
"name": "김재환",
"battingAverage": 283,
"pitcher": false
}
},
"bottom": false
},
"error": null
}
{
"success": true,
"response": {
"gameId": 1,
"inning": 2,
"homeScore" : 3,
"awayScore" : 4,
"sbo": {
"strike": 1,
"ball": 0,
"out": 0,
"hit": 0
},
"game": {
"home": {
"id": 3,
"teamId": 1,
"name": "김태균",
"battingAverage": 400,
"pitcher": false
},
"away": {
"id": 6,
"teamId": 2,
"name": "박건우",
"battingAverage": 319,
"pitcher": true
}
},
"bottom": false
},
"error": null
} |
6. 상세 점수 팝업 요청
{
"success": true,
"response": [],
"error": null
}
{
"success": true,
"response": [
{
"gameId": 1,
"teamId": 2,
"inning": 2,
"score": 2,
"bottom": false
}
],
"error": null
} |
1. 게임시작을 알립니다
{
"id" : "1",
"isStarted" : true
}
{
"success": true,
"response": {
"id": 1,
"matchId": 1
},
"error": null
}
2. game id를 이용해서 게임 진행화면을 불러옵니다.
{
"success": true,
"response": {
"gameId": 1,
"inning": 1,
"homeName": "Captin",
"homeScore": 0,
"awayName": "Marvel",
"awayScore": 0,
"game": {
"home": {
"id": 1,
"teamId": 1,
"name": "양성우",
"battingAverage": 168,
"pitcher": true
},
"away": {
"id": 10,
"teamId": 2,
"name": "박건우",
"battingAverage": 319,
"pitcher": true
}
},
"status": {
"gameId": 1,
"inning": 1,
"strike": 0,
"ball": 0,
"out": 0,
"hit": 0
},
"log": [],
"bottom": false
},
"error": null
} 3. Pitch 합니다.
{
"gameId" : 1,
"teamId" : 2,
"playerId" : 10,
"inning" : 1,
"battingAverage" : 229,
"isBottom" : false
}
{
"success": true,
"response": "BALL",
"error": null
}
{
"success": true,
"response": {
"gameId": 1,
"inning": 1,
"homeName": "Captin",
"homeScore": 0,
"awayName": "Marvel",
"awayScore": 0,
"game": {
"home": {
"id": 1,
"teamId": 1,
"name": "양성우",
"battingAverage": 168,
"pitcher": true
},
"away": {
"id": 10,
"teamId": 2,
"name": "박건우",
"battingAverage": 319,
"pitcher": true
}
},
"status": {
"gameId": 1,
"inning": 1,
"strike": 0,
"ball": 1,
"out": 0,
"hit": 0
},
"log": [
{
"id": 1,
"gameId": 1,
"playerId": 10,
"inning": 1,
"status": "BALL"
}
],
"bottom": false
},
"error": null
} 4. 상세 점수 화면
{
"success": true,
"response": [
{
"gameId": 1,
"teamId": 1,
"inning": 1,
"score": 0
},
{
"gameId": 1,
"teamId": 2,
"inning": 1,
"score": 0
}
],
"error": null
} 5. 상세 플레이어 페이지
{
"success": true,
"response": [
{
"gameId": 1,
"teamId": 2,
"playerId": 10,
"name": "박건우",
"atBat": 1,
"hits": 0,
"outs": 0
}
],
"error": null
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
URL
임시적 입니다!1. 메인 화면
2. 팀 선택 요청
3. 게임 시작 요청
4. 게임 진행 화면
5. Pitch 요청
6. 상세 점수 팝업 요청
7. 상세 플레이어 현황 팝업 요청
The text was updated successfully, but these errors were encountered: