mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2025-12-06 06:46:25 +00:00
api경로 수정
This commit is contained in:
parent
68a589971c
commit
1a8e43fb68
@ -34,9 +34,9 @@ public class ParticipationController {
|
||||
|
||||
/**
|
||||
* 이벤트 참여
|
||||
* POST /events/{eventId}/participate
|
||||
* POST /{eventId}/participate
|
||||
*/
|
||||
@PostMapping("/events/{eventId}/participate")
|
||||
@PostMapping("/{eventId}/participate")
|
||||
public ResponseEntity<ApiResponse<ParticipationResponse>> participate(
|
||||
@PathVariable String eventId,
|
||||
@Valid @RequestBody ParticipationRequest request) {
|
||||
@ -60,14 +60,14 @@ public class ParticipationController {
|
||||
|
||||
/**
|
||||
* 참여자 목록 조회
|
||||
* GET /events/{eventId}/participants
|
||||
* GET /{eventId}/participants
|
||||
*/
|
||||
@Operation(
|
||||
summary = "참여자 목록 조회",
|
||||
description = "이벤트의 참여자 목록을 페이징하여 조회합니다. " +
|
||||
"정렬 가능한 필드: createdAt(기본값), participantId, name, phoneNumber, bonusEntries, isWinner, wonAt"
|
||||
)
|
||||
@GetMapping({"/events/{eventId}/participants"})
|
||||
@GetMapping({"/{eventId}/participants"})
|
||||
public ResponseEntity<ApiResponse<PageResponse<ParticipationResponse>>> getParticipants(
|
||||
@Parameter(description = "이벤트 ID", example = "evt_20250124_001")
|
||||
@PathVariable String eventId,
|
||||
@ -88,9 +88,9 @@ public class ParticipationController {
|
||||
|
||||
/**
|
||||
* 참여자 상세 조회
|
||||
* GET /events/{eventId}/participants/{participantId}
|
||||
* GET /{eventId}/participants/{participantId}
|
||||
*/
|
||||
@GetMapping({"/events/{eventId}/participants/{participantId}"})
|
||||
@GetMapping({"/{eventId}/participants/{participantId}"})
|
||||
public ResponseEntity<ApiResponse<ParticipationResponse>> getParticipant(
|
||||
@PathVariable String eventId,
|
||||
@PathVariable String participantId) {
|
||||
|
||||
@ -35,9 +35,9 @@ public class WinnerController {
|
||||
|
||||
/**
|
||||
* 당첨자 추첨
|
||||
* POST /events/{eventId}/draw-winners
|
||||
* POST /{eventId}/draw-winners
|
||||
*/
|
||||
@PostMapping("/events/{eventId}/draw-winners")
|
||||
@PostMapping("/{eventId}/draw-winners")
|
||||
public ResponseEntity<ApiResponse<DrawWinnersResponse>> drawWinners(
|
||||
@PathVariable String eventId,
|
||||
@Valid @RequestBody DrawWinnersRequest request) {
|
||||
@ -50,14 +50,14 @@ public class WinnerController {
|
||||
|
||||
/**
|
||||
* 당첨자 목록 조회
|
||||
* GET /participations/{eventId}/winners
|
||||
* GET /{eventId}/winners
|
||||
*/
|
||||
@Operation(
|
||||
summary = "당첨자 목록 조회",
|
||||
description = "이벤트의 당첨자 목록을 페이징하여 조회합니다. " +
|
||||
"정렬 가능한 필드: winnerRank(기본값), wonAt, participantId, name, phoneNumber, bonusEntries"
|
||||
)
|
||||
@GetMapping("/events/{eventId}/winners")
|
||||
@GetMapping("/{eventId}/winners")
|
||||
public ResponseEntity<ApiResponse<PageResponse<ParticipationResponse>>> getWinners(
|
||||
@Parameter(description = "이벤트 ID", example = "evt_20250124_001")
|
||||
@PathVariable String eventId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user