User Project
'/users/{id}/projects'
GET
async find(
@param.path.string('id') id: string,
@param.query.object('filter') filter?: Filter<Project>,
): Promise<Project[]>POST
async create(
@param.path.string('id') id: typeof User.prototype.id,
@requestBody({
content: {
'application/json': {
schema: getModelSchemaRef(Project, {
title: 'NewProjectInUser',
exclude: ['id'],
optional: ['userId']
}),
},
},
}) project: Omit<Project, 'id'>,
): Promise<Project>'/users/{id}/projects/{projectId}'
PATCH
DEL
Last updated