Size Guides
· Revision #3
View Size Guide Endpoint
This endpoint is only available if aerocargo/size-guides is installed.
Structure
Size Guide
Name
|
Type
|
Description
|
id |
int |
The id of the size guide |
name |
string |
The name for the size guide |
heading
|
string |
The heading of the size guide |
view
|
string |
The view of the size guide |
small_image |
object |
The Small Image |
medium_image |
object |
The Medium Image |
large_image |
object |
The Large Image |
products
|
array |
An array of Product objects |
manufacturers
|
array |
An array of Manufacturer objects |
categories
|
array |
An array of Category objects |
tags
|
array |
An array of Tag objects |
groups
|
array |
An array of Group objects |
Group
Name
|
Type
|
Description
|
id |
int |
The id of the size guide group |
heading
|
string |
The heading of the size guide |
sections
|
array |
An array of Section objects |
Section
Name
|
Type
|
Description
|
id |
int |
The id of the size guide section |
heading
|
string |
The heading of the size guide section |
content
|
string |
The content of the size guide section |
Product
Name
|
Type
|
Description
|
id |
int |
The id of the product |
model
|
string |
The model of the product |
name |
string |
The name of the product |
Manufacturer
Name
|
Type
|
Description
|
id |
int |
The id of the manufacturer |
name |
string |
The name of the manufacturer |
Category
Name
|
Type
|
Description
|
id |
int |
The id of the category |
name |
string |
The name of the category |
breadcrumb
|
string |
The breadcrumb for the category |
Tag
Name
|
Type
|
Description
|
id |
int |
The id of the tag |
name |
string |
The name of the tag (e.g., Small or Red) |
group |
object |
The tag group, see Tag Group |
Tag Group
Name
|
Type
|
Description
|
id |
int |
The id of the tag group |
name |
string |
The name of the tag group (e.g., Size or Colour) |
Image
Name
|
Type
|
Description
|
url |
string |
The url of the image |
Example Request
GET /api/size-guides/{id}
Example Response
{
"id": 1,
"name": "API Test",
"heading": "Test",
"view": "test",
"small_image": {
"url": null
},
"medium_image": {
"url": null
},
"large_image": {
"url": null
},
"products": [],
"manufacturers": [
{
"id": 1,
"name": "Burberry"
}
],
"categories": [
{
"id": 1,
"name": "Coats",
"breadcrumb": "Mens » Coats"
}
],
"tags": [
{
"id": 1,
"name": "Blue",
"group": {
"id": 1,
"name": "Colour"
}
}
],
"groups": [
{
"id": 1,
"heading": "Group Heading",
"sections": [
{
"id": 1,
"heading": "Section Heading",
"content": "Section Content"
}
]
}
]
}