Repository navigation
API
Jeong InHo edited this page May 4, 2021
·
14 revisions
ip/login?code=12345
code
{
name:
email:
userId:
token:
}ip/logout
header
authorization: bearer {token}
200ok
ip/{teamName}
[
{
id: 1,
name: 김광진,
AVG: 3.2
},
{
id: 2,
name: 류현진,
AVG: 3.3
}
]ip/games
header
authorization: bearer {token}
[
{
homeTeamName: marvel,
awayTeamName: tigers
},
{
homeTeamName: tigers,
awayTeamName: twins
}
]ip/games/{teamName}
header
authorization: bearer {token}
{
playTeam: captin,
roundInfo: {
round: 2,
strike: 1,
ball: 2,
out: 1,
1B: true,
2B: false,
3B: true
},
후공homeTeam: {
teamName: captin,
score: 1
pitcher: {
name: 최동원,
pit: 39
},
hitter: {
name: 류현진,
AVG: 0.312,
TPA: 2,
hits(안타): 1
},
isOffense: true
},
선공awayTeam: { },
story: [볼(오래됨), 스트라이크]
}ip/games
header
authorization: bearer {token}
위에 res 그대로
200코드나 에러
ip/games/scores
header
authorization: bearer {token}
{
homeTeam: {
teamName: marvel,
scores: [1, 0, 0, 0]
},
awayTeam: {
teamName: captin,
scores: [1, 2, 2]
},
}ip/games/scores/{teamName}
header
authorization: bearer {token}
[
{
id: 1,
name: 김광진,
TPA(타석): 1,
hits: 1,
out: 0
},
{
id: 2,
name: 류현진,
TPA(타석): 1,
hits: 0,
out: 1
}
]