Order Info Order Chip
Endpoints to manage chip orders in an order.
'/orders/{id}/order-chips'
GET
async find(
@param.path.number('id') id: number,
): Promise<OrderChip[]>Auth: Yes RBAC: Admin, Customer (owner)
Get all chip orders in a given order.
POST
async create(
@param.path.number('id') id: typeof OrderInfo.prototype.id,
@requestBody({
content: {
'application/json': {
schema: {
type: 'object',
}
},
},
})
chip: Product & CheckoutLineItemInput,
): Promise<OrderChip>Auth: Yes RBAC: Admin, Customer (owner)
Create a chip order in an order.
'/orders/{id}/order-chips/{orderChipId}'
PATCH
async patchById(
@param.path.number('id') id: typeof OrderInfo.prototype.id,
@param.path.number('orderChipId') orderChipId: typeof OrderChip.prototype.id,
@requestBody({
content: {
'application/json': {
schema: getModelSchemaRef(OrderChip, { partial: true }),
},
},
})
orderChip: Partial<OrderChip>,
): Promise<Count>Auth: Yes RBAC: Admin, Customer (owner)
Update a chip order in an order.
DEL
async deleteById(
@param.path.number('id') id: typeof OrderInfo.prototype.id,
@param.path.number('orderChipId') orderChipId: typeof OrderChip.prototype.id,
): Promise<void>Auth: Yes RBAC: Admin, Customer (owner)
Delete a chip order in an order.
Last updated