app package¶
Submodules¶
app.routes module¶
- app.routes.combat_tick()¶
전투 수행 (1 틱) 적을 공격하고 HP가 0이 되면 보상을 획득합니다. — tags:
Game API
- responses:
- 200:
description: 전투 결과 및 갱신된 게임 상태 반환
- app.routes.enhance()¶
장비 강화 골드를 소모하여 장비 레벨을 올립니다. — tags:
Game API
- responses:
- 200:
description: 강화 성공 여부 및 결과
- 400:
description: 골드 부족
- app.routes.get_status()¶
현재 게임 상태 조회 로그인한 유저의 현재 게임 진행 상태(골드, 스테이지 등)를 불러옵니다. — tags:
Game API
- responses:
- 200:
description: 게임 상태 정보 반환
- app.routes.home()¶
메인 게임 화면을 렌더링합니다.
- app.routes.login()¶
사용자 로그인 아이디와 비밀번호를 확인하고 세션을 생성합니다. — tags:
Auth API
- Parameters:
name (-) –
body in: body required: true schema:
type: object properties:
- username:
type: string
- password:
type: string
- responses:
- 200:
description: 로그인 성공
- 401:
description: 비밀번호 불일치 또는 존재하지 않는 아이디
- app.routes.login_page()¶
로그인 및 회원가입 페이지를 렌더링합니다.
- app.routes.logout()¶
사용자 로그아웃 현재 로그인된 세션을 파기합니다. — tags:
Auth API
- responses:
- 200:
description: 로그아웃 성공
- app.routes.register()¶
신규 사용자 회원가입 아이디와 비밀번호를 받아 새로운 계정을 생성합니다. — tags:
Auth API
- Parameters:
name (-) –
body in: body required: true schema:
type: object properties:
- username:
type: string
- password:
type: string
- responses:
- 201:
description: 회원가입 성공
- 400:
description: 이미 존재하는 아이디
- app.routes.synthesize()¶
아이템 합성 100G를 소모하여 인벤토리의 0등급 아이템 5개를 1등급 아이템 1개로 합성합니다. — tags:
Game API
- responses:
- 200:
description: 합성 성공
- 400:
description: 골드 부족 또는 아이템 부족