Order Product

Endpoints for managing product orders.

'/order-products'

POST

async create(
    @requestBody({
      content: {
        'application/json': {
          schema: getModelSchemaRef(OrderProduct, {
            title: 'NewOrderProduct',
            exclude: ['id'],
          }),
        },
      },
    })
    orderProduct: Omit<OrderProduct, 'id'>,
  ): Promise<OrderProduct>

Auth: Yes RBAC: Admin

Create a product order.

GET

async find(
    @param.filter(OrderProduct) filter?: Filter<OrderProduct>,
  ): Promise<OrderProduct[]>

Auth: Yes RBAC: Admin

Search all product orders.

PATCH

async updateAll(
    @requestBody({
      content: {
        'application/json': {
          schema: getModelSchemaRef(OrderProduct, {partial: true}),
        },
      },
    })
    orderProduct: OrderProduct,
    @param.where(OrderProduct) where?: Where<OrderProduct>,
  ): Promise<Count>

Auth: Yes RBAC: Admin

Update all product orders.

'/order-products/count'

GET

async count(
    @param.where(OrderProduct) where?: Where<OrderProduct>,
  ): Promise<Count>

Auth: Yes RBAC: Admin

Get the number of product orders.

'/order-products/{id}'

GET

async findById(
    @param.path.number('id') id: number,
    @param.filter(OrderProduct, {exclude: 'where'}) filter?: FilterExcludingWhere<OrderProduct>
  ): Promise<OrderProduct>

Auth: Yes RBAC: Admin

Get a specific product order by ID.

PATCH

async updateById(
    @param.path.number('id') id: number,
    @requestBody({
      content: {
        'application/json': {
          schema: getModelSchemaRef(OrderProduct, {partial: true}),
        },
      },
    })
    orderProduct: OrderProduct,
  ): Promise<void>

Auth: Yes RBAC: Admin

Update a specific product order by ID.

PUT

async replaceById(
    @param.path.number('id') id: number,
    @requestBody() orderProduct: OrderProduct,
  ): Promise<void>

Auth: Yes RBAC: Admin

Overwrite a specific product order by ID.

DEL

async deleteById(@param.path.number('id') id: number): Promise<void>

Auth: Yes RBAC: Admin

Delete a specific product order by ID.

Last updated