User Post Comment
'/users/{id}/post-comments'
GET
async find(
@param.path.string('id') id: string,
@param.query.object('filter') filter?: Filter<Comment>,
): Promise<Comment[]>POST
async create(
@param.path.string('id') id: typeof User.prototype.id,
@requestBody({
content: {
'application/json': {
schema: getModelSchemaRef(Comment, {
title: 'NewPostCommentInUser',
exclude: ['id'],
}),
},
},
}) postComment: Omit<Comment, 'id'>,
): Promise<Comment>PATCH
DEL
Last updated