portfolio
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
portfolio
portfolio
/
org.project.portfolio.article.presentation
/
CommentController
/
deleteComment
delete
Comment
@
DeleteMapping
(
value
=
[
"/{commentId}"
]
)
@
PreAuthorize
(
value
=
"isAuthenticated() and @commentValidator.isAuthor(#articleId, #commentId, #userDetails.username)"
)
fun
deleteComment
(
@
PathVariable
articleId
:
Long
,
@
PathVariable
commentId
:
Long
,
@
AuthenticationPrincipal
userDetails
:
UserDetails
)
:
ResponseEntity
<
Unit
>