mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[API] Rename the resource from ProductVariantTranslation to ProductVariantTranslations
This commit is contained in:
parent
af4a421c33
commit
7eed74b20d
8 changed files with 15 additions and 9 deletions
6
UPGRADE-API-1.13.md
Normal file
6
UPGRADE-API-1.13.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# UPGRADE FROM `v1.12.x` TO `v1.13.0`
|
||||
|
||||
1. The item operation paths for ProductVariantTranslation resource changed:
|
||||
|
||||
- `GET /admin/product-variant-translation/{id}` -> `GET /admin/product-variant-translations/{id}`
|
||||
- `GET /shop/product-variant-translation/{id}` -> `GET /shop/product-variant-translations/{id}`
|
||||
|
|
@ -74,7 +74,7 @@ In the response you should get a collection with only one item:
|
|||
],
|
||||
"translations": {
|
||||
"en_US": {
|
||||
"@id": "/api/v2/shop/product-variant-translation/579960",
|
||||
"@id": "/api/v2/shop/product-variant-translations/579960",
|
||||
"@type": "ProductVariantTranslation",
|
||||
"id": 579960,
|
||||
"name": "S Petite",
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ and let's take first variant `@id` from list:
|
|||
],
|
||||
"translations": {
|
||||
"en_US": {
|
||||
"@id": "/api/v2/shop/product-variant-translation/123889",
|
||||
"@id": "/api/v2/shop/product-variant-translations/123889",
|
||||
"@type": "ProductVariantTranslation",
|
||||
"id": 123889,
|
||||
"name": "S",
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@
|
|||
<itemOperations>
|
||||
<itemOperation name="admin_get">
|
||||
<attribute name="method">GET</attribute>
|
||||
<attribute name="path">/admin/product-variant-translation/{id}</attribute>
|
||||
<attribute name="path">/admin/product-variant-translations/{id}</attribute>
|
||||
</itemOperation>
|
||||
|
||||
<itemOperation name="shop_get">
|
||||
<attribute name="method">GET</attribute>
|
||||
<attribute name="path">/shop/product-variant-translation/{id}</attribute>
|
||||
<attribute name="path">/shop/product-variant-translations/{id}</attribute>
|
||||
</itemOperation>
|
||||
</itemOperations>
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
"optionValues":[],
|
||||
"translations": {
|
||||
"en_US": {
|
||||
"@id":"\/api\/v2\/admin\/product-variant-translation\/@integer@",
|
||||
"@id":"\/api\/v2\/admin\/product-variant-translations\/@integer@",
|
||||
"@type":"ProductVariantTranslation",
|
||||
"id":"@integer@",
|
||||
"name":"Mug",
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
"enabled": true,
|
||||
"translations": {
|
||||
"en_US": {
|
||||
"@id": "\/api\/v2\/admin\/product-variant-translation\/@integer@",
|
||||
"@id": "\/api\/v2\/admin\/product-variant-translations\/@integer@",
|
||||
"@type": "ProductVariantTranslation",
|
||||
"id": "@integer@",
|
||||
"name": "Mug",
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
"optionValues": [],
|
||||
"translations": {
|
||||
"en_US": {
|
||||
"@id":"\/api\/v2\/admin\/product-variant-translation\/@integer@",
|
||||
"@id":"\/api\/v2\/admin\/product-variant-translations\/@integer@",
|
||||
"@type":"ProductVariantTranslation",
|
||||
"id":"@integer@",
|
||||
"name":"Yellow mug",
|
||||
|
|
|
|||
|
|
@ -20,14 +20,14 @@
|
|||
"enabled": true,
|
||||
"translations": {
|
||||
"de_DE": {
|
||||
"@id": "\/api\/v2\/admin\/product-variant-translation\/@integer@",
|
||||
"@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-translation\/@integer@",
|
||||
"@id": "\/api\/v2\/admin\/product-variant-translations\/@integer@",
|
||||
"@type": "ProductVariantTranslation",
|
||||
"id": @integer@,
|
||||
"name": "Pomarańczowy kubek",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue