Child Comment
'/child-comments/{id}'
GET
async find(
@param.path.number('id') id: number,
@param.query.object('filter') filter?: Filter<Comment>,
): Promise<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>Last updated