Project Project Link

Endpoints for managing project links.

GET

async find(
    @param.path.number('id') id: number,
    @param.query.object('filter') filter?: Filter<ProjectLink>,
  ): Promise<ProjectLink[]>

Auth: No

Get all links for a given project.

POST

async create(
    @param.path.number('id') id: typeof Project.prototype.id,
    @requestBody({
      content: {
        'application/json': {
          schema: getModelSchemaRef(ProjectLink, {
            title: 'NewProjectLinkInProject',
            exclude: ['id'],
            optional: ['projectId']
          }),
        },
      },
    }) projectLink: Omit<ProjectLink, 'id'>,
  ): Promise<ProjectLink>

Auth: Yes RBAC: Admin, User (owner)

Add a new link for a given project.

PATCH

async patch(
    @param.path.number('id') id: number,
    @requestBody({
      content: {
        'application/json': {
          schema: getModelSchemaRef(ProjectLink, {partial: true}),
        },
      },
    })
    projectLink: Partial<ProjectLink>,
    @param.query.object('where', getWhereSchemaFor(ProjectLink)) where?: Where<ProjectLink>,
  ): Promise<Count>

Auth: Yes RBAC: Admin, User (owner)

Update links for a given project.

POST

async delete(
    @param.path.number('id') id: number,
    @requestBody({
      content: {
        'application/json': {
          schema: {
            type: "object"
          }
        },
      },
    }) projectLink: {"link": string}
  ): Promise<Count>

Auth: Yes RBAC: Admin, User (owner)

Delete links for a given project.

Last updated