User Liked Comment

'/users/{id}/liked-comments'

GET

async getAll(
    @param.path.string('id') id: typeof User.prototype.id,
    @param.query.object('filter') filter?: Filter<Comment>,
  ): Promise<Comment[]>

Auth: Yes RBAC: Admin, User (owner)

Get comments a user has liked.

'/users/{id}/liked-comments/{commentId}'

GET

async find(
    @param.path.string('id') id: string,
    @param.path.number('commentId') commentId: typeof Comment.prototype.id,
  ): Promise<Comment>

Auth: Yes RBAC: Admin, User (owner)

Check a specific comment a user has liked.

POST

async create(
    @param.path.string('id') id: typeof User.prototype.id,
    @param.path.number('commentId') commentId: typeof Comment.prototype.id,
  ): Promise<{"success": boolean}>

Auth: Yes RBAC: Admin, User (owner)

Like a specific comment for a given user.

DEL

async delete(
    @param.path.string('id') id: typeof User.prototype.id,
    @param.path.number('commentId') commentId: typeof Comment.prototype.id,
  ): Promise<void>

Auth: Yes RBAC: Admin, User (owner)

Remove a like for a specific comment for a given user.

Last updated