paths:
/api/v1/carts/{customerId}/items:
post:
tags:
- cart
summary: Adds an item in shopping cart
description: Adds an item to the shopping cart
operationId: addCartItemsByCustomerId
parameters:
- name: customerId
in: path
description: Customer Identifier
required: true
schema:
type: string
requestBody:
description: Item object
content:
application/xml:
schema:
$ref: '#/components/schemas/Item'
application/json:
schema:
$ref: '#/components/schemas/Item'
responses:
201:
description: Item added successfully
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Item'
404:
description: Given customer ID doesn't exist
content: {}