@@ -1096,10 +1096,10 @@ Below is the JSON format representing a reference entity.
1096
1096
1097
1097
``` json
1098
1098
{
1099
- "code" : " brands " ,
1099
+ "code" : " brand " ,
1100
1100
"labels" : {
1101
- "en_US" : " Brands " ,
1102
- "fr_FR" : " Marques "
1101
+ "en_US" : " Brand " ,
1102
+ "fr_FR" : " Marque "
1103
1103
},
1104
1104
"image" : " 0/2/d/6/54d81dc888ba1501a8g765f3ab5797569f3bv756c_ref_img.png"
1105
1105
}
@@ -1120,8 +1120,9 @@ In the Akeneo UI, you can find the attributes that compose a given reference ent
1120
1120
1121
1121
![ Reference entity attributes] ( /img/screenshots/v3.0/reference_entity_attribute.png )
1122
1122
1123
- Below is the JSON standard format representing a reference entity attribute.
1123
+ The JSON format for the reference entity attribute can differ according to its type. Below are some examples for each attribute type .
1124
1124
1125
+ Format for the ` text ` attribute type
1125
1126
``` json
1126
1127
{
1127
1128
"code" : " description" ,
@@ -1132,12 +1133,87 @@ Below is the JSON standard format representing a reference entity attribute.
1132
1133
"type" : " text" ,
1133
1134
"localizable" : true ,
1134
1135
"scopable" : false ,
1136
+ "is_required_for_completeness" : true ,
1135
1137
"max_characters" : null ,
1136
1138
"is_textarea" : true ,
1137
1139
"is_rich_text_editor" : true ,
1138
1140
"validation_rule" : null ,
1139
- "validation_regexp" : null ,
1140
- "reference_entity_code" : null
1141
+ "validation_regexp" : null
1142
+ }
1143
+ ```
1144
+
1145
+ Format for the ` image ` attribute type
1146
+ ``` json
1147
+ {
1148
+ "code" : " photo" ,
1149
+ "labels" : {
1150
+ "en_US" : " Photo" ,
1151
+ "fr_FR" : " Photo"
1152
+ },
1153
+ "type" : " image" ,
1154
+ "localizable" : false ,
1155
+ "scopable" : false ,
1156
+ "is_required_for_completeness" : true ,
1157
+ "allowed_extensions" : [" jpg" ],
1158
+ "max_file_size" : " 10"
1159
+ }
1160
+ ```
1161
+
1162
+ Format for the ` single option ` and ` multiple options ` attribute types
1163
+ ``` json
1164
+ {
1165
+ "code" : " nationality" ,
1166
+ "labels" : {
1167
+ "en_US" : " Nationality" ,
1168
+ "fr_FR" : " Nationalité"
1169
+ },
1170
+ "type" : " single_option" ,
1171
+ "localizable" : false ,
1172
+ "scopable" : false ,
1173
+ "is_required_for_completeness" : false
1174
+ }
1175
+ ```
1176
+ ``` json
1177
+ {
1178
+ "code" : " sales_areas" ,
1179
+ "labels" : {
1180
+ "en_US" : " Sales areas" ,
1181
+ "fr_FR" : " Zones de vente"
1182
+ },
1183
+ "type" : " multiple_options" ,
1184
+ "localizable" : false ,
1185
+ "scopable" : false ,
1186
+ "is_required_for_completeness" : true
1187
+ }
1188
+ ```
1189
+
1190
+ Format for the ` reference entity single link ` and ` reference entity multiple links ` attribute types
1191
+ ``` json
1192
+ {
1193
+ "code" : " country" ,
1194
+ "labels" : {
1195
+ "en_US" : " Country" ,
1196
+ "fr_FR" : " Pays"
1197
+ },
1198
+ "type" : " reference_entity_single_link" ,
1199
+ "localizable" : false ,
1200
+ "scopable" : false ,
1201
+ "is_required_for_completeness" : false ,
1202
+ "reference_entity_code" : " country"
1203
+ }
1204
+ ```
1205
+ ``` json
1206
+ {
1207
+ "code" : " designers" ,
1208
+ "labels" : {
1209
+ "en_US" : " Designers" ,
1210
+ "fr_FR" : " Designeurs"
1211
+ },
1212
+ "type" : " reference_entity_multiple_links" ,
1213
+ "localizable" : false ,
1214
+ "scopable" : false ,
1215
+ "is_required_for_completeness" : true ,
1216
+ "reference_entity_code" : " designer"
1141
1217
}
1142
1218
```
1143
1219
@@ -1217,6 +1293,13 @@ Below is the JSON standard format representing a reference entity record.
1217
1293
"data" : " Kartell, l'éditeur de meuble italien spécialisé dans la signature de belle pièces au design contemporain."
1218
1294
}
1219
1295
],
1296
+ "designer" :[
1297
+ {
1298
+ "locale" : null ,
1299
+ "channel" : null ,
1300
+ "data" : " starck"
1301
+ }
1302
+ ],
1220
1303
"country" : [
1221
1304
{
1222
1305
"locale" : null ,
@@ -1231,7 +1314,7 @@ Below is the JSON standard format representing a reference entity record.
1231
1314
"data" : " 1949"
1232
1315
}
1233
1316
],
1234
- "collection_overview " :[
1317
+ "photo " :[
1235
1318
{
1236
1319
"locale" : null ,
1237
1320
"channel" : null ,
@@ -1312,12 +1395,12 @@ The `image` attribute is scopable but not localizable, so it can hold several da
1312
1395
{
1313
1396
"locale" : null ,
1314
1397
"channel" : " ecommerce" ,
1315
- "data" : //TODO
1398
+ "data" : " 5/1/d/8/51d81dc778ba1501a8f998f3ab5797569f3b9e25_img_ecommerce.png "
1316
1399
},
1317
1400
{
1318
1401
"locale" : null ,
1319
1402
"channel" : " mobile" ,
1320
- "data" : //TODO
1403
+ "data" : " c/4/d/8/51d81dc778ba1501a8f998f3ab57975610g7867i_img_mobile.png "
1321
1404
}
1322
1405
]
1323
1406
}
0 commit comments