Skip to content

Commit dda3558

Browse files
authored
Merge pull request #1053 from akeneo/PROGX-637
2 parents 474e5e4 + 6cdc74c commit dda3558

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

content/swagger/akeneo-web-api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/swagger/resources/categories/definitions/category.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ properties:
5353
attribute_code:
5454
type: string
5555
description: The attribute code with its uuid (attributeCode|attributeUuid)
56+
channel_requirements:
57+
type: array
58+
description: List of <a href='api-reference.html#Channel'>Channel</a> codes on which the category tree is required for products completeness. Only category trees can be required, not child categories.
59+
items:
60+
type: string
5661
example: {
5762
"code": "winter_collection",
5863
"parent": null,
@@ -83,5 +88,6 @@ example: {
8388
"locale": "en_US",
8489
"attribute_code": "image_1|871b8686-79b5-415c-9c6f-a38f8732dfb7"
8590
}
86-
}
91+
},
92+
"channel_requirements": ["ecommerce", "mobile"],
8793
}

content/swagger/resources/categories/definitions/category_update.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ properties:
6262
is_mandatory:
6363
type: boolean
6464
description: Set category as mandatory for every product
65+
channel_requirements:
66+
type: array
67+
description: List of <a href='api-reference.html#Channel'>Channel</a> codes on which the category is required for products completeness. Only category trees can be required, not child categories.
68+
x-validation-rules: Only applicable to root category
69+
items:
70+
type: string
6571
example:
6672
{
6773
"code": "winter_collection",
@@ -95,5 +101,6 @@ example:
95101
"max_categories_per_product": 42,
96102
"only_leaves": false,
97103
"is_mandatory": true
98-
}
104+
},
105+
"channel_requirements": ["ecommerce", "mobile"]
99106
}

content/swagger/resources/categories/routes/categories.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ get:
9494
"locale": "en_US",
9595
"attribute_code": "image_1|871b8686-79b5-415c-9c6f-a38f8732dfb7"
9696
}
97-
}
97+
},
98+
"channel_requirements": ["ecommerce", "mobile"]
9899
},
99100
{
100101
"_links": {
@@ -111,7 +112,8 @@ get:
111112
"fr_FR": "Femme",
112113
"de_DE": "Damen"
113114
},
114-
"values": {}
115+
"values": {},
116+
"channel_requirements": []
115117
},
116118
{
117119
"_links": {
@@ -128,7 +130,8 @@ get:
128130
"fr_FR": "Homme",
129131
"de_DE": "Herren"
130132
},
131-
"values": {}
133+
"values": {},
134+
"channel_requirements": []
132135
},
133136
{
134137
"_links": {
@@ -145,7 +148,8 @@ get:
145148
"fr_FR": "Enfant",
146149
"de_DE": "Kinder"
147150
},
148-
"values": {}
151+
"values": {},
152+
"channel_requirements": []
149153
},
150154
{
151155
"_links": {
@@ -162,7 +166,8 @@ get:
162166
"fr_FR": "Collection été",
163167
"de_DE": "Sommer-Kollektion"
164168
},
165-
"values": {}
169+
"values": {},
170+
"channel_requirements": ["print"]
166171
}
167172
]
168173
}

0 commit comments

Comments
 (0)