From 81baffaaa217ac02ed63d24b35f59c155bfa891b Mon Sep 17 00:00:00 2001 From: Bo Su Date: Mon, 18 Sep 2023 17:58:23 +1000 Subject: [PATCH] UNITY-8531 REST: extend PATCH/GET operations on Product API - Review changes --- .../get_product_productid_crossselling_response.json | 4 ++-- .../products/examples/get_product_productid_response.json | 2 +- _raml/apps/products/examples/get_product_response.json | 6 +++--- .../examples/get_product_updated_property_response.json | 2 +- .../patch_product_productid_crossselling_response.json | 4 ++-- .../products/examples/patch_product_productid_request.json | 6 +++--- .../products/examples/patch_product_productid_response.json | 2 +- .../apps/products/examples/post_product_find_response.json | 6 +++--- _raml/apps/products/examples/post_product_response.json | 2 +- .../put_product_productid_crossselling_response.json | 4 ++-- .../apps/search/examples/post_search_products_response.json | 2 +- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/_raml/apps/products/examples/get_product_productid_crossselling_response.json b/_raml/apps/products/examples/get_product_productid_crossselling_response.json index 14803ed31..8884e2378 100644 --- a/_raml/apps/products/examples/get_product_productid_crossselling_response.json +++ b/_raml/apps/products/examples/get_product_productid_crossselling_response.json @@ -228,7 +228,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Dr. Boom", "upc": null, @@ -363,7 +363,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Bass by Dr.Boom", "upc": null, diff --git a/_raml/apps/products/examples/get_product_productid_response.json b/_raml/apps/products/examples/get_product_productid_response.json index 36a2224aa..e5c057de1 100644 --- a/_raml/apps/products/examples/get_product_productid_response.json +++ b/_raml/apps/products/examples/get_product_productid_response.json @@ -229,7 +229,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Bass by Dr.Boom", "upc": null, diff --git a/_raml/apps/products/examples/get_product_response.json b/_raml/apps/products/examples/get_product_response.json index d117e9f83..44ba21bc7 100644 --- a/_raml/apps/products/examples/get_product_response.json +++ b/_raml/apps/products/examples/get_product_response.json @@ -116,7 +116,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Dr. Boom", "upc": null, @@ -260,7 +260,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Bass by Dr.Boom", "upc": null, @@ -529,7 +529,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Bass by Dr.Boom", "upc": null, diff --git a/_raml/apps/products/examples/get_product_updated_property_response.json b/_raml/apps/products/examples/get_product_updated_property_response.json index 4f12c34e5..cf9a787f3 100644 --- a/_raml/apps/products/examples/get_product_updated_property_response.json +++ b/_raml/apps/products/examples/get_product_updated_property_response.json @@ -226,7 +226,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Bass by Dr.Boom", "upc": null, diff --git a/_raml/apps/products/examples/patch_product_productid_crossselling_response.json b/_raml/apps/products/examples/patch_product_productid_crossselling_response.json index 78142b0cb..8039e70e6 100644 --- a/_raml/apps/products/examples/patch_product_productid_crossselling_response.json +++ b/_raml/apps/products/examples/patch_product_productid_crossselling_response.json @@ -164,7 +164,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Dr. Boom", "upc": null, @@ -294,7 +294,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Bass by Dr.Boom", "upc": null, diff --git a/_raml/apps/products/examples/patch_product_productid_request.json b/_raml/apps/products/examples/patch_product_productid_request.json index 518c25593..5ccb10607 100644 --- a/_raml/apps/products/examples/patch_product_productid_request.json +++ b/_raml/apps/products/examples/patch_product_productid_request.json @@ -49,7 +49,7 @@ { "op": "add", "path": "/video", - "value": { "type":"YouTube", "id":"XXXXXXXXXXX" } + "value": { "type":"YouTube", "id":"CM4CkVFmTds" } }, { "op": "add", @@ -59,7 +59,7 @@ { "op": "add", "path": "/referencePriceInfo", - "value": {"refAmount":1, "refUnit":"piece", "refContentAmount":2} + "value": {"refAmount":1, "refUnit":"piece", "refContentAmount":1} }, { "op": "add", @@ -79,7 +79,7 @@ { "op": "add", "path": "/productDataSheet", - "value": {"fileName":"myfilename.jpg", "url":"https://www.example.com/file.jpg"} + "value": {"fileName":"datasheet_Z-1080-BT-02.pdf", "url":"https://www.technic365.com/datacontent.php?code=Z1080BT02"} }, { "op": "add", diff --git a/_raml/apps/products/examples/patch_product_productid_response.json b/_raml/apps/products/examples/patch_product_productid_response.json index ab231fe18..68e928066 100644 --- a/_raml/apps/products/examples/patch_product_productid_response.json +++ b/_raml/apps/products/examples/patch_product_productid_response.json @@ -198,7 +198,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": "Z-108-002", "manufacturer": "Bass by Dr.Boom", "upc": null, diff --git a/_raml/apps/products/examples/post_product_find_response.json b/_raml/apps/products/examples/post_product_find_response.json index ccaa1fdda..2de6524b5 100644 --- a/_raml/apps/products/examples/post_product_find_response.json +++ b/_raml/apps/products/examples/post_product_find_response.json @@ -110,7 +110,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Dr. Boom", "upc": null, @@ -248,7 +248,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Bass by Dr.Boom", "upc": null, @@ -453,7 +453,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Bass by Dr.Boom", "upc": null, diff --git a/_raml/apps/products/examples/post_product_response.json b/_raml/apps/products/examples/post_product_response.json index aea338ce1..663f0e34c 100644 --- a/_raml/apps/products/examples/post_product_response.json +++ b/_raml/apps/products/examples/post_product_response.json @@ -67,7 +67,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Awesome Products Company", "upc": null, diff --git a/_raml/apps/products/examples/put_product_productid_crossselling_response.json b/_raml/apps/products/examples/put_product_productid_crossselling_response.json index 78142b0cb..8039e70e6 100644 --- a/_raml/apps/products/examples/put_product_productid_crossselling_response.json +++ b/_raml/apps/products/examples/put_product_productid_crossselling_response.json @@ -164,7 +164,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Dr. Boom", "upc": null, @@ -294,7 +294,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Bass by Dr.Boom", "upc": null, diff --git a/_raml/apps/search/examples/post_search_products_response.json b/_raml/apps/search/examples/post_search_products_response.json index b6307414f..f195db162 100644 --- a/_raml/apps/search/examples/post_search_products_response.json +++ b/_raml/apps/search/examples/post_search_products_response.json @@ -116,7 +116,7 @@ "newnessDate": "2023-08-08T00:00:00Z", "refAmount": 1, "refUnit": "piece", - "refContentAmount": 2, + "refContentAmount": 1, "productCode": null, "manufacturer": "Dr. Boom", "upc": null,