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

Auth: Yes RBAC: Admin

Search all product orders.

PATCH

Auth: Yes RBAC: Admin

Update all product orders.

'/order-products/count'

GET

Auth: Yes RBAC: Admin

Get the number of product orders.

'/order-products/{id}'

GET

Auth: Yes RBAC: Admin

Get a specific product order by ID.

PATCH

Auth: Yes RBAC: Admin

Update a specific product order by ID.

PUT

Auth: Yes RBAC: Admin

Overwrite a specific product order by ID.

DEL

Auth: Yes RBAC: Admin

Delete a specific product order by ID.

Last updated