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
/
createComment
create
Comment
@
PostMapping
@
PreAuthorize
(
value
=
"isAuthenticated()"
)
@
ResponseStatus
(
value
=
HttpStatus.CREATED
)
fun
createComment
(
@
AuthenticationPrincipal
userDetails
:
UserDetails
,
@
PathVariable
articleId
:
Long
,
@
Valid
@
RequestBody
commentForm
:
CommentForm
)
:
ResponseEntity
<
CommentResponse
>