Skip to content

Commit ecc76ed

Browse files
committed
MAGETWO-32783: Implement Gift message related interfaces
1 parent 8c9f0ac commit ecc76ed

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

app/code/Magento/GiftMessage/etc/webapi.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
<resource ref="Magento_Sales::create" />
2020
</resources>
2121
</route>
22-
<route url="/V1/carts/:cartId/gift-message" method="PUT">
22+
<route url="/V1/carts/:cartId/gift-message" method="POST">
2323
<service class="Magento\GiftMessage\Api\CartRepositoryInterface" method="save"/>
2424
<resources>
2525
<resource ref="Magento_Sales::create" />
2626
</resources>
2727
</route>
28-
<route url="/V1/carts/:cartId/gift-message/:itemId" method="PUT">
28+
<route url="/V1/carts/:cartId/gift-message/:itemId" method="POST">
2929
<service class="Magento\GiftMessage\Api\ItemRepositoryInterface" method="save"/>
3030
<resources>
3131
<resource ref="Magento_Sales::create" />

dev/tests/api-functional/testsuite/Magento/GiftMessage/Api/CartRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testSave()
7777
$serviceInfo = [
7878
'rest' => [
7979
'resourcePath' => self::RESOURCE_PATH . $cartId . '/gift-message',
80-
'httpMethod' => RestConfig::HTTP_METHOD_PUT,
80+
'httpMethod' => RestConfig::HTTP_METHOD_POST,
8181
],
8282
'soap' => [
8383
'service' => self::SERVICE_NAME,

dev/tests/api-functional/testsuite/Magento/GiftMessage/Api/ItemRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function testSave()
8282
$serviceInfo = [
8383
'rest' => [
8484
'resourcePath' => self::RESOURCE_PATH . $cartId . '/gift-message/' . $itemId,
85-
'httpMethod' => RestConfig::HTTP_METHOD_PUT,
85+
'httpMethod' => RestConfig::HTTP_METHOD_POST,
8686
],
8787
'soap' => [
8888
'service' => self::SERVICE_NAME,

dev/tests/static/testsuite/Magento/Test/Php/_files/whitelist/common.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ app/code/Magento/Directory/Model/Resource/Region
6363
app/code/Magento/Eav/Model/Cache/Type.php
6464
app/code/Magento/GiftMessage/Model/Plugin
6565
app/code/Magento/GiftMessage/Model/Type/Plugin
66-
app/code/Magento/GiftMessage/Service
6766
app/code/Magento/GoogleShopping/Block/SiteVerification.php
6867
app/code/Magento/GoogleShopping/Model/AttributeFactory.php
6968
app/code/Magento/GroupedImportExport

0 commit comments

Comments
 (0)