2525import org .springframework .security .core .annotation .AuthenticationPrincipal ;
2626import org .springframework .web .bind .annotation .GetMapping ;
2727import org .springframework .web .bind .annotation .PatchMapping ;
28- import org .springframework .web .bind .annotation .PathVariable ;
2928import org .springframework .web .bind .annotation .PostMapping ;
3029import org .springframework .web .bind .annotation .RequestBody ;
3130import org .springframework .web .bind .annotation .RequestMapping ;
@@ -83,7 +82,7 @@ public ResponseEntity<CharacterStatusResponse> CharacterStatusOpen(
8382 }
8483 )
8584 @ ResponseMessage ("정상적으로 캐릭터 보유 스킬이 조회되었습니다." )
86- @ GetMapping ("/skills/unequipped" )
85+ @ GetMapping ("/characters/ skills/unequipped" )
8786 public ResponseEntity <List <SkillResponse >> CharacterSkillsOpen (
8887 @ AuthenticationPrincipal AuthUser authUser
8988 ) {
@@ -98,7 +97,7 @@ public ResponseEntity<List<SkillResponse>> CharacterSkillsOpen(
9897 }
9998 )
10099 @ ResponseMessage ("정상적으로 아이템 뽑기에 성공하였습니다." )
101- @ PostMapping ("/items/gambling " )
100+ @ PostMapping ("/characters/ items/gamble " )
102101 public ResponseEntity <ItemGamblingResponse > gamblingForItem (
103102 @ AuthenticationPrincipal AuthUser authUser ,
104103 @ RequestBody @ Valid ItemGamblingRequest request
@@ -115,7 +114,7 @@ public ResponseEntity<ItemGamblingResponse> gamblingForItem(
115114 }
116115 )
117116 @ ResponseMessage ("정상적으로 스킬 뽑기에 성공하였습니다." )
118- @ PostMapping ("/skills/gambling" )
117+ @ PostMapping ("/characters/ skills/gambling" )
119118 public ResponseEntity <SkillGamblingResponse > gamblingForSkill (
120119 @ AuthenticationPrincipal AuthUser authUser
121120 ) {
@@ -131,7 +130,7 @@ public ResponseEntity<SkillGamblingResponse> gamblingForSkill(
131130 }
132131 )
133132 @ ResponseMessage ("정상적으로 인벤토리가 조회되었습니다." )
134- @ GetMapping ("/inventories" )
133+ @ GetMapping ("/characters/ inventories" )
135134 public ResponseEntity <List <ItemResponse >> inventoryOpen (
136135 @ AuthenticationPrincipal AuthUser authUser
137136 ) {
@@ -147,7 +146,7 @@ public ResponseEntity<List<ItemResponse>> inventoryOpen(
147146 }
148147 )
149148 @ ResponseMessage ("정상적으로 아이템이 장착되었습니다." )
150- @ PatchMapping ("/items/equip" )
149+ @ PatchMapping ("/characters/ items/equip" )
151150 public ResponseEntity <Void > equipItem (
152151 @ AuthenticationPrincipal AuthUser authUser ,
153152 @ RequestBody @ Valid ItemEquipRequest request
@@ -165,7 +164,7 @@ public ResponseEntity<Void> equipItem(
165164 }
166165 )
167166 @ ResponseMessage ("정상적으로 스킬이 장착되었습니다." )
168- @ PatchMapping ("/skills/equip" )
167+ @ PatchMapping ("/characters/ skills/equip" )
169168 public ResponseEntity <Void > equipSkill (
170169 @ AuthenticationPrincipal AuthUser authUser ,
171170 @ RequestBody @ Valid SkillEquipRequest request
@@ -183,7 +182,7 @@ public ResponseEntity<Void> equipSkill(
183182 }
184183 )
185184 @ ResponseMessage ("정상적으로 스킬 장착이 해제되었습니다." )
186- @ PatchMapping ("/skills/unequip" )
185+ @ PatchMapping ("/characters/ skills/unequip" )
187186 public ResponseEntity <Void > unEquipSkill (
188187 @ AuthenticationPrincipal AuthUser authUser ,
189188 @ RequestBody @ Valid SkillUnEquipRequest request
@@ -201,7 +200,7 @@ public ResponseEntity<Void> unEquipSkill(
201200 }
202201 )
203202 @ ResponseMessage ("정상적으로 배틀이 완료되었습니다." )
204- @ PostMapping ("/battles" )
203+ @ PostMapping ("/characters/ battles" )
205204 public ResponseEntity <BattleHistoryResponse > battle (
206205 @ AuthenticationPrincipal AuthUser authUser ,
207206 @ RequestBody @ Valid BattleRequest request
@@ -218,7 +217,7 @@ public ResponseEntity<BattleHistoryResponse> battle(
218217 }
219218 )
220219 @ ResponseMessage ("정상적으로 배틀 매칭에 성공하였습니다." )
221- @ GetMapping ("/battles/matching" )
220+ @ GetMapping ("/characters/ battles/matching" )
222221 public ResponseEntity <MatchingBattleResponse > randomBattleMatching (
223222 @ AuthenticationPrincipal AuthUser authUser
224223 ) {
@@ -234,7 +233,7 @@ public ResponseEntity<MatchingBattleResponse> randomBattleMatching(
234233 }
235234 )
236235 @ ResponseMessage ("정상적으로 인카운터 매칭에 성공하였습니다." )
237- @ GetMapping ("/encounters/matching" )
236+ @ GetMapping ("/characters/ encounters/matching" )
238237 public ResponseEntity <MatchingEncounterResponse > randomEncounterMatching (
239238 @ AuthenticationPrincipal AuthUser authUser
240239 ) {
@@ -250,7 +249,7 @@ public ResponseEntity<MatchingEncounterResponse> randomEncounterMatching(
250249 }
251250 )
252251 @ ResponseMessage ("정상적으로 인카운터 선택지가 결정되었습니다." )
253- @ PostMapping ("/encounters/choice" )
252+ @ PostMapping ("/characters/ encounters/choice" )
254253 public ResponseEntity <EncounterResultResponse > encounterChoice (
255254 @ AuthenticationPrincipal AuthUser authUser ,
256255 @ RequestBody @ Valid EncounterChoiceRequest request
0 commit comments