Create a list of items for a cart
POST/carts/:id/items
Create a list of items for a cart
Request
Path Parameters
id stringrequired
- application/json
Body
arrayrequired
- Array [
- ]
id uuid
title string
image string
description string
value number
quantity int32
created_at date-time
updated_at date-time
category object
id uuid
name string
created_at date-time
updated_at date-time
Responses
- 201
- 400
- 404
Successfully created items for the cart
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Bad request - No items to insert in cart
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Cart not found
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Loading...