User User Profile
'/users/{id}/user-profile'
GET
async get(
@param.path.string('id') id: string,
@param.query.object('filter') filter?: Filter<UserProfile>,
): Promise<UserProfile>POST
async create(
@param.path.string('id') id: typeof User.prototype.id,
@requestBody({
content: {
'application/json': {
schema: getModelSchemaRef(UserProfile, {
title: 'NewUserProfileInUser',
exclude: ['id'],
optional: ['userId']
}),
},
},
}) userProfile: Omit<UserProfile, 'id'>,
): Promise<UserProfile>PATCH
DEL
Last updated