User Saved Project

'/users/{id}/saved-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 a user's saved projects.

'/users/{id}/saved-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 saved project for a user.

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)

Save a project for a 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)

Unsave a project for a user.

Last updated