POSTS
(replyComment)
app/controllers/api/post_comments_controller.ts - replyComment
post/api/posts/{postId}/comments/{commentId}
Request
- The document declares no server URL.
- Auth: HTTP bearer
Path parameters
postIdstring required
Example:string
Post to leave a comment
commentIdstring required
Example:string
Comment to delete
Request body
Example request
{
"comment": "Lorem Ipsum"
}Response
Returns 200 (OK) as application/json
Example response
{
"id": 134,
"postId": 206,
"user": {
"username": "Lorem Ipsum",
"firstName": "John",
"lastName": "Doe",
"id": 538,
"email": "johndoe@example.com",
"createdAt": "2021-03-23T16:13:08.489+01:00",
"balance": 185
},
"comment": "Lorem Ipsum",
"createdAt": "Lorem Ipsum",
"deletedAt": "Lorem Ipsum",
"replyId": 775,
"repliesAmount": 159
}Changes
No recorded changes to this operation across all 1 revision of this API.