Skip to content

Commit

Permalink
UNITY-8531 REST: extend PATCH/GET operations on Product API
Browse files Browse the repository at this point in the history
- Review changes
  • Loading branch information
bolsu committed Sep 18, 2023
1 parent 189a781 commit 18321d3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
{
"op": "add",
"path": "/customisationInfo",
"value": {"isCustomizable":1, "customizableTextLength":50, "customizableHeadlineText":"headline text"}
"value": {"isCustomizable":true, "customizableTextLength":50, "customizableHeadlineText":"Customize your product"}
},
{
"op": "add",
"path": "/title",
"value": "My title"
"value": "BRAND NEW: Dr.Boom - Star Wars Edition - Technic365"
},
{
"op": "add",
Expand All @@ -94,5 +94,5 @@
{
"op": "add",
"path": "/productCode",
"value": "examplecode"
"value": "Z-1080-BT-02"
}]
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 2,
"productCode": null,
"productCode": "Z-108-002",
"manufacturer": "Bass by Dr.Boom",
"upc": null,
"ean": null,
Expand Down
1 change: 1 addition & 0 deletions _raml/apps/products/products.raml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ post:
- /isNew<br>
- /newnessDate<br>
- /video<br>
- /isVATInfoVisible<br>
- /isManufacturerPriceRRP<br>
- /referencePriceInfo<br>
- /isShippingLinkVisible<br>
Expand Down
14 changes: 7 additions & 7 deletions apps/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,9 @@ This object is used for the attributes of basePrice, depositPrice, ecoParticipat
| customizableHeadlineText | string | The headline for the customization text field in the storefront. |
| newnessDate | string | The date when the 'New' marker is set to expire. Expressed according to ISO 8601. |
| refAmount | string | The product reference amount with respect to the product price (e.g. every 1 'piece' costs 10,00 €) |
| refUnit | string | The product reference unit. Can be *byte*, *kilobyte*, *megabyte*, *gigabyte*, *terrabyte*, *gram*, *kilogram*, *milligram*, *ounce*, *pound*, *tone*, *litre*, *cubicfoot*, *cubicinch*, *cubicmetre*, *cubicyard*, *fluidounce*, *gallon*, *millilitre*, *quart*, *metre*, *centimetre*, *foot*, *inch*, *kilometre*, *millimetre*, *yard*, *piece*, *bottle*, *box*, *can*, *capsule*, *carton*, *glass*, *kit*, *pack*, *packet*, *pair*, *roll*, *set*, *sheet*, *ticket*, *unit*, *second*, *day*, *hour*, *minute*, *month*, *night*, *week*, *year*, *squaremetre*, *squarecentimetre*, *squarefoot*, *squareinch*, *squaremillimetre*, *squareyard* |
| refContentAmount | string | The number of reference units that is packaged within the product itself (e.g. the product contains 2 'piece(s)') |
| productCode | string | The product code (e.g. EAN, UPC, ASIN und ISBN) |
| refUnit | string | The product reference unit. Can be *byte*, *kilobyte*, *megabyte*, *gigabyte*, *terrabyte*, *gram*, *kilogram*, *milligram*, *ounce*, *pound*, *tone*, *litre*, *cubicfoot*, *cubicinch*, *cubicmetre*, *cubicyard*, *fluidounce*, *gallon*, *millilitre*, *quart*, *metre*, *centimetre*, *foot*, *inch*, *kilometre*, *millimetre*, *yard*, *piece*, *bottle*, *box*, *can*, *capsule*, *carton*, *glass*, *kit*, *pack*, *packet*, *pair*, *roll*, *set*, *sheet*, *ticket*, *unit*, *second*, *day*, *hour*, *minute*, *month*, *night*, *week*, *year*, *squaremetre*, *squarecentimetre*, *squarefoot*, *squareinch*, *squaremillimetre*, *squareyard*. |
| refContentAmount | string | The number of reference units that is packaged within the product itself (e.g. the product contains 2 'piece(s)'). |
| productCode | string | The product code (e.g. EAN, UPC, ASIN and ISBN). |

## product (create request)

Expand Down Expand Up @@ -758,10 +758,10 @@ This object is used for the attributes of basePrice, depositPrice, ecoParticipat
| customizableTextLength | number | The maximum length of the custom text the customer can enter for a product in the storefront. |
| customizableHeadlineText | string | The headline for the customization text field in the storefront. |
| newnessDate | string | The date when the 'New' marker is set to expire. Expressed according to ISO 8601. |
| refAmount | string | The product reference amount with respect to the product price (e.g. every 1 'piece' costs 10,00 €) |
| refUnit | string | The product reference unit. Can be *byte*, *kilobyte*, *megabyte*, *gigabyte*, *terrabyte*, *gram*, *kilogram*, *milligram*, *ounce*, *pound*, *tone*, *litre*, *cubicfoot*, *cubicinch*, *cubicmetre*, *cubicyard*, *fluidounce*, *gallon*, *millilitre*, *quart*, *metre*, *centimetre*, *foot*, *inch*, *kilometre*, *millimetre*, *yard*, *piece*, *bottle*, *box*, *can*, *capsule*, *carton*, *glass*, *kit*, *pack*, *packet*, *pair*, *roll*, *set*, *sheet*, *ticket*, *unit*, *second*, *day*, *hour*, *minute*, *month*, *night*, *week*, *year*, *squaremetre*, *squarecentimetre*, *squarefoot*, *squareinch*, *squaremillimetre*, *squareyard* |
| refContentAmount | string | The number of reference units that is packaged within the product itself (e.g. the product contains 2 'piece(s)') |
| productCode | string | The product code (e.g. EAN, UPC, ASIN und ISBN) |
| refAmount | string | The product reference amount with respect to the product price (e.g. every 1 'piece' costs 10,00 €). |
| refUnit | string | The product reference unit. Can be *byte*, *kilobyte*, *megabyte*, *gigabyte*, *terrabyte*, *gram*, *kilogram*, *milligram*, *ounce*, *pound*, *tone*, *litre*, *cubicfoot*, *cubicinch*, *cubicmetre*, *cubicyard*, *fluidounce*, *gallon*, *millilitre*, *quart*, *metre*, *centimetre*, *foot*, *inch*, *kilometre*, *millimetre*, *yard*, *piece*, *bottle*, *box*, *can*, *capsule*, *carton*, *glass*, *kit*, *pack*, *packet*, *pair*, *roll*, *set*, *sheet*, *ticket*, *unit*, *second*, *day*, *hour*, *minute*, *month*, *night*, *week*, *year*, *squaremetre*, *squarecentimetre*, *squarefoot*, *squareinch*, *squaremillimetre*, *squareyard*. |
| refContentAmount | string | The number of reference units that is packaged within the product itself (e.g. the product contains 2 'piece(s)'). |
| productCode | string | The product code (e.g. EAN, UPC, ASIN and ISBN). |
| query | string | The search query. |
| fallbackQuery | string | The fallback used if the original query did not produce any results. |
| facets | array of [facet](page:apps-data-types#facet) | The refined search filter options. |
Expand Down

0 comments on commit 18321d3

Please sign in to comment.