Game api protocol - SG-Finder/auth_server GitHub Wiki
Get Player Info In Game
Request
- endpoint: GET /finder/player/{nickname}
- header
| Key | Value | Type | Info | 
|---|---|---|---|
| session-token | askfziouh&%=as | string | ์ธ์ ํ ํฐ | 
Response
Success
- status code: 200
- body
| Key | Value | Type | Info | 
|---|---|---|---|
| nickname | Zookeeper | string | ํ๋ ์ด์ด์ ๋๋ค์ | 
| tier | BRONZE | string | ํ๋ ์ด์ด์ ํฐ์ด | 
| score | 0 | int | ํ๋ ์ด์ด์ ์ ์ | 
| history | data | json object | ํ๋ ์ด์ด์ ํ์คํ ๋ฆฌ ์ ๋ณด | 
| weapon | [ knife, gun ] | json array | ํ๋ ์ด์ด์ ๋ฌด๊ธฐ ์ ๋ณด | 
| point | 0 | int | ํ๋ ์ด์ด์ ํฌ์ธํธ | 
history data
| Key | Value | Type | Info | 
|---|---|---|---|
| win | 12 | int | ์น๋ฆฌ ํ์ | 
| lose | 2 | int | ํจ๋ฐฐ ํ์ | 
| oneShot | 123 | int | ํ๋ฒ์ ์ ์ ์ฐพ๋ ๋ฏธ์  ๋ฌ์ฑ ํ์ | 
| finder | 125 | int | ์งง์ ์๊ฐ์์ ์ ์ ์ฐพ๋ ๋ฏธ์  ๋ฌ์ฑ ํ์ | 
| lastWeekRank | 0 | int | ํ๋ ์ด์ด์ ๋ญํฌ(ref: ํํ๋ ์คํํ์ง ์์์ผ๋ฉด 0) | 
weapon data
| Key | Value | Type | Info | 
|---|---|---|---|
| name | knife | string | ๋ฌด๊ธฐ ์ด๋ฆ | 
| damage | 50 | int | ๋ฌด๊ธฐ ๋ฐ๋ฏธ์ง | 
| price | 100 | int | ๋ฌด๊ธฐ ๊ฐ๊ฒฉ | 
| usableCount | 1 | int | ๋ฌด๊ธฐ ๋ณด์ ๋ | 
Fail
- body
| Key | Value | Type | Info | 
|---|---|---|---|
| code | 409 | int | ์๋ฌ ์ฝ๋ | 
| message | ํ ํฐ์ด ๋ง๋ฃ ๋์์ต๋๋ค. | string | ์๋ฌ ๋ฉ์์ง | 
Fail์ด ๋ ์ ์๋ ๊ฒฝ์ฐ
400 : BAD_REQUEST
- path variable์ด null์ผ ๊ฒฝ์ฐ
404 : NOT FOUND
- ํด๋น ๋๋ค์์ ๊ฐ์ง ํ๋ ์ด์ด๊ฐ ์์ ๊ฒฝ์ฐ
409 : UNAUTHORIZED
- header์ ํ ํฐ์ด ์๊ฑฐ๋ ๋ง๋ฃ์ผ ๊ฒฝ์ฐ