DistributorProductSubGenre¶
A distributor product subgenre is a distributor-specific subgenre used on offers. Each record belongs to one distributor. This resource is read-only.
Note: The related distributor is available by sideloading it with
?include=distributor.
Lists DistributorProductSubGenres¶
GET https://domain.com/api/v1/distributor-product-subgenres
Headers¶
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Bearer \ |
| Content-Type* | String | application/vnd.api+json |
Response — 200 OK
{
"data": [
{
"type": "distributor-product-subgenres",
"id": "<ID>",
"attributes": {
"name": "World",
"key": "world"
},
"relationships": {
"distributor": {
"links": {
"related": "https://domain.com/api/v1/distributor-product-subgenres/<ID>/distributor",
"self": "https://domain.com/api/v1/distributor-product-subgenres/<ID>/relationships/distributor"
}
}
},
"links": {
"self": "https://domain.com/api/v1/distributor-product-subgenres/<ID>"
}
},
{
"type": "distributor-product-subgenres",
"id": "<ID>",
"attributes": {
"name": "Alternative",
"key": "alternative"
},
"relationships": {
"distributor": {
"links": {
"related": "https://domain.com/api/v1/distributor-product-subgenres/<ID>/distributor",
"self": "https://domain.com/api/v1/distributor-product-subgenres/<ID>/relationships/distributor"
}
}
},
"links": {
"self": "https://domain.com/api/v1/distributor-product-subgenres/<ID>"
}
}
],
"meta": {
"page": {
"currentPage": 1,
"from": 1,
"lastPage": 4,
"perPage": 20,
"to": 2,
"total": 70
}
},
"jsonapi": {
"version": "1.0"
},
"links": {
"first": "https://domain.com/api/v1/distributor-product-subgenres?page[number]=1&page[size]=20",
"last": "https://domain.com/api/v1/distributor-product-subgenres?page[number]=4&page[size]=20",
"next": "https://domain.com/api/v1/distributor-product-subgenres?page[number]=2&page[size]=20"
}
}
Get DistributorProductSubGenre¶
GET https://domain.com/api/v1/distributor-product-subgenres/:id
Path Parameters¶
| Name | Type | Description |
|---|---|---|
| id* | Number | DistributorProductSubGenre ID |
Headers¶
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Bearer \ |
| Content-Type* | String | application/vnd.api+json |
Response — 200 OK
{
"data": {
"type": "distributor-product-subgenres",
"id": "<ID>",
"attributes": {
"name": "World",
"key": "world"
},
"relationships": {
"distributor": {
"links": {
"related": "https://domain.com/api/v1/distributor-product-subgenres/<ID>/distributor",
"self": "https://domain.com/api/v1/distributor-product-subgenres/<ID>/relationships/distributor"
}
}
},
"links": {
"self": "https://domain.com/api/v1/distributor-product-subgenres/<ID>"
}
},
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "https://domain.com/api/v1/distributor-product-subgenres/<ID>"
}
}
Response — 404 Not Found