Skip to content

Commit fef8a87

Browse files
jilu1tomreece
authored andcommitted
MQE-440: metadata changes for path parameters bug fix.
(cherry picked from commit 9323084)
1 parent fa429b7 commit fef8a87

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Metadata/category-meta.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
</object>
3131
</operation>
3232

33-
<operation name="UpdateCategory" dataType="category" type="update" auth="adminOauth" url="/V1/categories" method="PUT">
33+
<operation name="UpdateCategory" dataType="category" type="update" auth="adminOauth" url="/V1/categories/{id}" method="PUT">
3434
<contentType>application/json</contentType>
35+
<param key="id" type="path">{id}</param>
3536
<object key="category" dataType="category">
3637
<field key="id">integer</field>
3738
<field key="parent_id">integer</field>
@@ -54,8 +55,8 @@
5455
</object>
5556
</operation>
5657

57-
<operation name="DeleteCategory" dataType="category" type="delete" auth="adminOauth" url="/V1/categories" method="DELETE">
58+
<operation name="DeleteCategory" dataType="category" type="delete" auth="adminOauth" url="/V1/categories/{id}" method="DELETE">
5859
<contentType>application/json</contentType>
59-
<param key="categoryId" type="path">{id}</param>
60+
<param key="id" type="path">{id}</param>
6061
</operation>
6162
</config>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Checkout/Metadata/coupon-meta.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
</object>
2626
</operation>
2727

28-
<operation name="DeleteCoupon" dataType="coupon" type="delete" auth="adminOauth" url="/rest/V1/coupons" method="DELETE">
28+
<operation name="DeleteCoupon" dataType="coupon" type="delete" auth="adminOauth" url="/rest/V1/coupons/{couponId}" method="DELETE">
2929
<header param="Content-Type">application/json</header>
30-
<param key="couponId" type="path">{coupon_id}</param>
30+
<param key="couponId" type="path">{couponId}</param>
3131
</operation>
3232
</config>

0 commit comments

Comments
 (0)