Skip to content

Commit

Permalink
[fix] swagger ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u committed Jan 16, 2024
1 parent 1dc35d1 commit 031d190
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Tag(name = "์„ ๋ฌผ", description = "์„ ๋ฌผ ๊ด€๋ จ API")
public interface GiftApi {
Expand All @@ -34,6 +35,7 @@ public interface GiftApi {
},
security = @SecurityRequirement(name = "token")
)
@PostMapping
ResponseEntity<SuccessResponse<?>> createNewGift(
@Parameter(
description = "authorization token์—์„œ ์–ป์€ userId, ์ž„์˜์ž…๋ ฅํ•˜๋ฉด ๋Œ€์ฒด๋ฉ๋‹ˆ๋‹ค.",
Expand All @@ -56,6 +58,7 @@ ResponseEntity<SuccessResponse<?>> createNewGift(
},
security = @SecurityRequirement(name = "token")
)
@GetMapping("/my/{roomId}")
ResponseEntity<SuccessResponse<?>> getMyGift(
@Parameter(
description = "authorization token์—์„œ ์–ป์€ userId, ์ž„์˜์ž…๋ ฅํ•˜๋ฉด ๋Œ€์ฒด๋ฉ๋‹ˆ๋‹ค.",
Expand All @@ -78,6 +81,7 @@ ResponseEntity<SuccessResponse<?>> getMyGift(
},
security = @SecurityRequirement(name = "token")
)
@GetMapping("/my/{giftId}")
ResponseEntity<SuccessResponse<?>> deleteMyGift(
@Parameter(
description = "authorization token์—์„œ ์–ป์€ userId, ์ž„์˜์ž…๋ ฅํ•˜๋ฉด ๋Œ€์ฒด๋ฉ๋‹ˆ๋‹ค.",
Expand Down Expand Up @@ -112,6 +116,7 @@ ResponseEntity<SuccessResponse<?>> deleteMyGift(
},
security = @SecurityRequirement(name = "token")
)
@GetMapping("/tournament/{roomId}")
ResponseEntity<SuccessResponse<?>> getTournamentGiftList(
@Parameter(
description = "authorization token์—์„œ ์–ป์€ userId, ์ž„์˜์ž…๋ ฅํ•˜๋ฉด ๋Œ€์ฒด๋ฉ๋‹ˆ๋‹ค.",
Expand All @@ -138,6 +143,7 @@ ResponseEntity<SuccessResponse<?>> getTournamentGiftList(
},
security = @SecurityRequirement(name = "token")
)
@GetMapping("/tournament-score")
ResponseEntity<SuccessResponse<?>> evaluateTournamentScore(
@Parameter(
description = "authorization token์—์„œ ์–ป์€ userId, ์ž„์˜์ž…๋ ฅํ•˜๋ฉด ๋Œ€์ฒด๋ฉ๋‹ˆ๋‹ค.",
Expand Down Expand Up @@ -171,6 +177,7 @@ ResponseEntity<SuccessResponse<?>> evaluateTournamentScore(
},
security = @SecurityRequirement(name = "token")
)
@GetMapping("/tournament-info/{roomId}")
ResponseEntity<SuccessResponse<?>> getTournamentInfo(
@Parameter(
description = "authorization token์—์„œ ์–ป์€ userId, ์ž„์˜์ž…๋ ฅํ•˜๋ฉด ๋Œ€์ฒด๋ฉ๋‹ˆ๋‹ค.",
Expand Down

0 comments on commit 031d190

Please sign in to comment.