Get a catalog item by ID
Retrieves the details of a specific catalog item using its unique ID.
Responses
-
Successfully retrieved catalog item details. The
item_vectorfield will be present and contain the 32-element array if stored, or it will benull(or potentially omitted depending on server encoding settings ifomitemptyis used) if not stored. -
Bad Request (Invalid ID format).
-
Not Found (Item with the specified ID does not exist).
-
Internal Server Error
GET
/api/catalog/{id}
curl \
--request GET 'http://localhost:8000/api/catalog/{id}'
Response examples (200)
{
"id": 42,
"category": "tops",
"item_name": "string",
"brand_id": "string",
"item_url": "string",
"price": 42.0,
"item_img": "string",
"attributes": {},
"item_vector": [
42.0
]
}
Response examples (400)
{
"error": "string"
}
Response examples (404)
{
"error": "string"
}
Response examples (500)
{
"error": "string"
}