Retrieve a list of items by cart ID
GET/carts/:id/items
Retrieve a list of items by cart ID
Request
Path Parameters
id stringrequired
Responses
- 200
- 404
Successfully retrieved the list of items
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
id uuid
name string
value number
product object
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
cart object
id uuid
items undefined[]
customer object
id uuid
name string
email string
password string
created_at date-time
updated_at date-time
created_at date-time
updated_at date-time
created_at date-time
updated_at date-time
[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"value": 0,
"product": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "string",
"image": "string",
"description": "string",
"value": 0,
"quantity": 0,
"created_at": "2024-03-23T09:23:32.875Z",
"updated_at": "2024-03-23T09:23:32.875Z",
"category": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"created_at": "2024-03-23T09:23:32.875Z",
"updated_at": "2024-03-23T09:23:32.875Z"
}
},
"cart": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
null
],
"customer": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"email": "string",
"password": "string",
"created_at": "2024-03-23T09:23:32.875Z",
"updated_at": "2024-03-23T09:23:32.875Z"
},
"created_at": "2024-03-23T09:23:32.875Z",
"updated_at": "2024-03-23T09:23:32.875Z"
},
"created_at": "2024-03-23T09:23:32.875Z",
"updated_at": "2024-03-23T09:23:32.875Z"
}
]
Cart not found
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
id uuid
name string
value number
product object
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
cart object
id uuid
items undefined[]
customer object
id uuid
name string
email string
password string
created_at date-time
updated_at date-time
created_at date-time
updated_at date-time
created_at date-time
updated_at date-time
[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"value": 0,
"product": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "string",
"image": "string",
"description": "string",
"value": 0,
"quantity": 0,
"created_at": "2024-03-23T09:23:32.876Z",
"updated_at": "2024-03-23T09:23:32.876Z",
"category": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"created_at": "2024-03-23T09:23:32.876Z",
"updated_at": "2024-03-23T09:23:32.876Z"
}
},
"cart": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"items": [
null
],
"customer": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"email": "string",
"password": "string",
"created_at": "2024-03-23T09:23:32.876Z",
"updated_at": "2024-03-23T09:23:32.876Z"
},
"created_at": "2024-03-23T09:23:32.876Z",
"updated_at": "2024-03-23T09:23:32.876Z"
},
"created_at": "2024-03-23T09:23:32.876Z",
"updated_at": "2024-03-23T09:23:32.876Z"
}
]
Loading...