User Follower
Endpoints for managing a user's followers.
'/users/{id}/followers'
GET
async getAll(
@param.path.string('id') id: string,
@param.query.object('filter') filter?: Filter<User>,
): Promise<User[]>Auth: Yes RBAC: Admin, User (owner)
Get all followers for a given user.
'/users/{id}/followers/{followerId}'
GET
async find(
@param.path.string('id') id: typeof User.prototype.id,
@param.path.string('followerId') followerId: typeof User.prototype.id,
): Promise<User>Auth: Yes RBAC: Admin, User (owner)
Get a specific follower by ID for a given user.
POST
async create(
@param.path.string('id') id: typeof User.prototype.id,
@param.path.string('followerId') followerId: typeof User.prototype.id,
): Promise<void>Auth: Yes RBAC: Admin, User (owner)
Add a new follower for a given user. The follower can call this endpoint, not the user being followed.
DEL
async delete(
@param.path.string('id') id: string,
@param.path.string('followerId') followerId: typeof User.prototype.id,
): Promise<void>Auth: Yes RBAC: Admin, User (owner)
Remove a follower for a given user. The follower can call this endpoint, not the user being followed.
Last updated