Skip to content

Commit

Permalink
[feat] #25 내가 등록한 선물 삭제 기능 swagger 코드 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
ziiyouth committed Jan 9, 2024
1 parent c59d46d commit 4efe38b
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/main/java/org/sopt/sweet/domain/gift/controller/GiftApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.sopt.sweet.global.common.SuccessResponse;
import org.sopt.sweet.global.config.auth.UserId;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;

@Tag(name = "선물", description = "선물 관련 API")
public interface GiftApi {
Expand Down Expand Up @@ -59,5 +60,27 @@ ResponseEntity<SuccessResponse<?>> getMyGift(
example = "12345"
) @UserId Long userId,
@Valid @RequestBody MyGiftsRequestDto myGiftsRequestDto
);
);

@Operation(
summary = "내가 등록한 선물 삭제 API",
responses = {
@ApiResponse(
responseCode = "200",
content = @Content(
mediaType = "application/json",
schema = @Schema(implementation = SuccessResponse.class)
)
)
},
security = @SecurityRequirement(name = "token")
)
ResponseEntity<SuccessResponse<?>> deleteMyGift(
@Parameter(
description = "authorization token에서 얻은 userId, 임의입력하면 대체됩니다.",
required = true,
example = "12345"
) @UserId Long userId,
@PathVariable Long giftId
);
}

0 comments on commit 4efe38b

Please sign in to comment.