Customer Address
'/customers/{id}/addresses'
GET
async find(
@param.path.string('id') id: typeof Customer.prototype.id,
@param.query.object('filter') filter?: Filter<Address>,
): Promise<Address[]>POST
async create(
@param.path.string('id') id: typeof Customer.prototype.id,
@requestBody({
content: {
'application/json': {
schema: getModelSchemaRef(Address, {
title: 'NewAddressInCustomer',
exclude: ['id'],
optional: ['userId']
}),
},
},
}) address: Omit<Address, 'id'>,
): Promise<Address>DEL
'/customers/{id}/addresses/{addressId}/default'
POST
'/customers/{id}/addresses/{addressId}'
GET
PATCH
Last updated