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