mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[API] Remove non-iri id field from ProductVariantTranslation and ChannelPricing serialization
This commit is contained in:
parent
7eed74b20d
commit
3a519e8692
6 changed files with 0 additions and 13 deletions
|
|
@ -16,10 +16,6 @@
|
|||
xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
|
||||
>
|
||||
<class name="Sylius\Component\Core\Model\ChannelPricing">
|
||||
<attribute name="id">
|
||||
<group>admin:product_variant:read</group>
|
||||
</attribute>
|
||||
|
||||
<attribute name="channelCode">
|
||||
<group>admin:product_variant:read</group>
|
||||
<group>admin:product_variant:create</group>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
<attribute name="id">
|
||||
<group>shop:order:account:read</group>
|
||||
<group>admin:order:read</group>
|
||||
<group>admin:product_variant:read</group>
|
||||
<group>shop:product_variant:read</group>
|
||||
</attribute>
|
||||
<attribute name="name">
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
"WEB": {
|
||||
"@id": "/api/v2/admin/channel-pricings/@integer@",
|
||||
"@type": "ChannelPricing",
|
||||
"id": @integer@,
|
||||
"channelCode": "WEB",
|
||||
"price": 2000,
|
||||
"originalPrice": null,
|
||||
|
|
@ -21,7 +20,6 @@
|
|||
"en_US": {
|
||||
"@id":"\/api\/v2\/admin\/product-variant-translations\/@integer@",
|
||||
"@type":"ProductVariantTranslation",
|
||||
"id":"@integer@",
|
||||
"name":"Mug",
|
||||
"locale":"en_US"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
"WEB": {
|
||||
"@id": "/api/v2/admin/channel-pricings/@integer@",
|
||||
"@type": "ChannelPricing",
|
||||
"id": @integer@,
|
||||
"channelCode": "WEB",
|
||||
"price": 2000,
|
||||
"originalPrice": null,
|
||||
|
|
@ -26,7 +25,6 @@
|
|||
"en_US": {
|
||||
"@id": "\/api\/v2\/admin\/product-variant-translations\/@integer@",
|
||||
"@type": "ProductVariantTranslation",
|
||||
"id": "@integer@",
|
||||
"name": "Mug",
|
||||
"locale": "en_US"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
"en_US": {
|
||||
"@id":"\/api\/v2\/admin\/product-variant-translations\/@integer@",
|
||||
"@type":"ProductVariantTranslation",
|
||||
"id":"@integer@",
|
||||
"name":"Yellow mug",
|
||||
"locale":"en_US"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
"WEB": {
|
||||
"@id": "\/api\/v2\/admin\/channel-pricings\/@integer@",
|
||||
"@type": "ChannelPricing",
|
||||
"id": @integer@,
|
||||
"channelCode": "WEB",
|
||||
"price": 3000,
|
||||
"originalPrice": 4000,
|
||||
|
|
@ -22,14 +21,12 @@
|
|||
"de_DE": {
|
||||
"@id": "\/api\/v2\/admin\/product-variant-translations\/@integer@",
|
||||
"@type": "ProductVariantTranslation",
|
||||
"id": @integer@,
|
||||
"name": "Orange Tasse",
|
||||
"locale": "de_DE"
|
||||
},
|
||||
"pl_PL": {
|
||||
"@id": "\/api\/v2\/admin\/product-variant-translations\/@integer@",
|
||||
"@type": "ProductVariantTranslation",
|
||||
"id": @integer@,
|
||||
"name": "Pomarańczowy kubek",
|
||||
"locale": "pl_PL"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue