Child Comment
Endpoints for managing child comments (replies) under top-level comments on posts and projects.
'/child-comments/{id}'
GET
async find(
@param.path.number('id') id: number,
@param.query.object('filter') filter?: Filter<Comment>,
): Promise<Comment[]>Auth: No
Gets all child comments (replies) under a given top-level comment.
'/child-comments/{commentId}'
POST
async create(
@param.path.number('commentId') id: typeof Comment.prototype.id,
@requestBody({
content: {
'application/json': {
schema: getModelSchemaRef(Comment, {
title: 'NewPostCommentInPostComment',
exclude: ['id'],
}),
},
},
})
comment: Omit<Comment, 'id'>,
): Promise<Comment>Auth: Yes
Creates a new child comment under an existing comment. This makes use of the AuthorInterceptor which tags the request to this endpoint with metadata about the user making the request to set the author.
Last updated