User Liked Project
'/users/{id}/liked-projects'
GET
async getAll(
@param.path.string('id') id: typeof User.prototype.id,
@param.query.object('filter') filter?: Filter<Project>,
): Promise<Project[]>Auth: Yes RBAC: Admin, User (owner)
Get projects a user has liked.
'/users/{id}/liked-projects/{projectId}'
GET
async find(
@param.path.string('id') id: string,
@param.path.number('projectId') projectId: typeof Project.prototype.id,
): Promise<Project>Auth: Yes RBAC: Admin, User (owner)
Check a specific project a given user has liked.
POST
async create(
@param.path.string('id') id: typeof User.prototype.id,
@param.path.number('projectId') projectId: typeof Project.prototype.id,
): Promise<void>Auth: Yes RBAC: Admin, User (owner)
Like a specific project for a given user.
DEL
async delete(
@param.path.string('id') id: typeof User.prototype.id,
@param.path.number('projectId') projectId: typeof Project.prototype.id,
): Promise<void>Auth: Yes RBAC: Admin, User (owner)
Remove a like for a specific project for a given user.
Last updated