Skip to content

Commit c2e439f

Browse files
author
Cari Spruiell
committed
Merge remote-tracking branch 'remotes/api/MAGETWO-44473-Unable-to-get-Carts-information-using-search-criteria-API' into API-Bug-PR
2 parents b9ecb3b + 6649b17 commit c2e439f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<resource ref="Magento_Cart::manage" />
1616
</resources>
1717
</route>
18-
<route url="/V1/carts" method="GET">
18+
<route url="/V1/carts/search" method="GET">
1919
<service class="Magento\Quote\Api\CartRepositoryInterface" method="getList"/>
2020
<resources>
2121
<resource ref="Magento_Cart::manage" />

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function testGetList()
183183
$requestData = ['searchCriteria' => $searchCriteria];
184184
$serviceInfo = [
185185
'rest' => [
186-
'resourcePath' => '/V1/carts' . '?' . http_build_query($requestData),
186+
'resourcePath' => '/V1/carts/search' . '?' . http_build_query($requestData),
187187
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_GET,
188188
],
189189
'soap' => [
@@ -221,7 +221,7 @@ public function testGetListThrowsExceptionIfProvidedSearchFieldIsInvalid()
221221
'operation' => 'quoteCartRepositoryV1GetList',
222222
],
223223
'rest' => [
224-
'resourcePath' => '/V1/carts',
224+
'resourcePath' => '/V1/carts/search',
225225
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_PUT,
226226
],
227227
];

0 commit comments

Comments
 (0)