diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceItemRepository/GetListTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceItemRepository/GetListTest.php
index b45ac4453205..6616c02752a8 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceItemRepository/GetListTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceItemRepository/GetListTest.php
@@ -19,7 +19,7 @@ class GetListTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source-item';
+ const RESOURCE_PATH = '/V1/inventory/source-items';
const SERVICE_NAME = 'inventoryApiSourceItemRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceItemsDeleteTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceItemsDeleteTest.php
index 93e1228e9664..d9e51356a080 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceItemsDeleteTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceItemsDeleteTest.php
@@ -18,8 +18,8 @@ class SourceItemsDeleteTest extends WebapiAbstract
/**#@+
* Service constants
*/
+ const RESOURCE_PATH = '/V1/inventory/source-items';
const RESOURCE_DELETE_PATH = '/V1/inventory/source-items-delete';
- const RESOURCE_PATH = '/V1/inventory/source-item';
const SERVICE_NAME = 'inventoryApiSourceItemsDeleteV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceItemsSave/SaveTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceItemsSave/SaveTest.php
index d0546f361b57..16cf85118e02 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceItemsSave/SaveTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceItemsSave/SaveTest.php
@@ -18,7 +18,7 @@ class SaveTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source-item';
+ const RESOURCE_PATH = '/V1/inventory/source-items';
const SERVICE_NAME_SAVE = 'inventoryApiSourceItemsSaveV1';
const SERVICE_NAME_DELETE = 'inventoryApiSourceItemsDeleteV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceItemsSave/ValidationTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceItemsSave/ValidationTest.php
index 760705fefa2f..19301c76183e 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceItemsSave/ValidationTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceItemsSave/ValidationTest.php
@@ -17,7 +17,7 @@ class ValidationTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source-item';
+ const RESOURCE_PATH = '/V1/inventory/source-items';
const SERVICE_NAME = 'inventoryApiSourceItemsSaveV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/CarrierLinkManagementTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/CarrierLinkManagementTest.php
index 1c5f794ab5cd..e5d5f460c9aa 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/CarrierLinkManagementTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/CarrierLinkManagementTest.php
@@ -17,7 +17,7 @@ class CarrierLinkManagementTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source';
+ const RESOURCE_PATH = '/V1/inventory/sources';
const SERVICE_NAME = 'inventoryApiSourceRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/CreateTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/CreateTest.php
index 7862c13da315..1a880d9b39cc 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/CreateTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/CreateTest.php
@@ -20,7 +20,7 @@ class CreateTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source';
+ const RESOURCE_PATH = '/V1/inventory/sources';
const SERVICE_NAME = 'inventoryApiSourceRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/GetListTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/GetListTest.php
index b6da46458cc3..063ff81e6835 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/GetListTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/GetListTest.php
@@ -19,7 +19,7 @@ class GetListTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source';
+ const RESOURCE_PATH = '/V1/inventory/sources';
const SERVICE_NAME = 'inventoryApiSourceRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/GetTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/GetTest.php
index 4a4d6463df6c..6cc344ef81e4 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/GetTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/GetTest.php
@@ -20,7 +20,7 @@ class GetTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source';
+ const RESOURCE_PATH = '/V1/inventory/sources';
const SERVICE_NAME = 'inventoryApiSourceRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/RegionProcessingTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/RegionProcessingTest.php
index a7ffc1959a26..ca702fd30686 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/RegionProcessingTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/RegionProcessingTest.php
@@ -18,7 +18,7 @@ class RegionProcessingTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source';
+ const RESOURCE_PATH = '/V1/inventory/sources';
const SERVICE_NAME = 'inventoryApiSourceRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/UpdateTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/UpdateTest.php
index 3217deff05e8..d14572094ba1 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/UpdateTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/UpdateTest.php
@@ -18,7 +18,7 @@ class UpdateTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source';
+ const RESOURCE_PATH = '/V1/inventory/sources';
const SERVICE_NAME = 'inventoryApiSourceRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/ValidationTest.php b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/ValidationTest.php
index 4c39bc61eda6..73036fff1472 100644
--- a/app/code/Magento/InventoryApi/Test/Api/SourceRepository/ValidationTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/SourceRepository/ValidationTest.php
@@ -17,7 +17,7 @@ class ValidationTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source';
+ const RESOURCE_PATH = '/V1/inventory/sources';
const SERVICE_NAME = 'inventoryApiSourceRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/StockRepository/CreateTest.php b/app/code/Magento/InventoryApi/Test/Api/StockRepository/CreateTest.php
index 86f1414dd7e9..68d675fcb394 100644
--- a/app/code/Magento/InventoryApi/Test/Api/StockRepository/CreateTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/StockRepository/CreateTest.php
@@ -19,7 +19,7 @@ class CreateTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock';
+ const RESOURCE_PATH = '/V1/inventory/stocks';
const SERVICE_NAME = 'inventoryApiStockRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/StockRepository/DeleteTest.php b/app/code/Magento/InventoryApi/Test/Api/StockRepository/DeleteTest.php
index 10388543ab94..03e74ad6d8bc 100644
--- a/app/code/Magento/InventoryApi/Test/Api/StockRepository/DeleteTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/StockRepository/DeleteTest.php
@@ -16,7 +16,7 @@ class DeleteTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock';
+ const RESOURCE_PATH = '/V1/inventory/stocks';
const SERVICE_NAME = 'inventoryApiStockRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/StockRepository/GetListTest.php b/app/code/Magento/InventoryApi/Test/Api/StockRepository/GetListTest.php
index a372f83f5576..2fc305ed324b 100644
--- a/app/code/Magento/InventoryApi/Test/Api/StockRepository/GetListTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/StockRepository/GetListTest.php
@@ -19,7 +19,7 @@ class GetListTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock';
+ const RESOURCE_PATH = '/V1/inventory/stocks';
const SERVICE_NAME = 'inventoryApiStockRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/StockRepository/GetTest.php b/app/code/Magento/InventoryApi/Test/Api/StockRepository/GetTest.php
index e41e9dc172c8..3eb8e943e6c9 100644
--- a/app/code/Magento/InventoryApi/Test/Api/StockRepository/GetTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/StockRepository/GetTest.php
@@ -20,7 +20,7 @@ class GetTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock';
+ const RESOURCE_PATH = '/V1/inventory/stocks';
const SERVICE_NAME = 'inventoryApiStockRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/StockRepository/UpdateTest.php b/app/code/Magento/InventoryApi/Test/Api/StockRepository/UpdateTest.php
index 5eb835494fe4..c6d7d75d7e3c 100644
--- a/app/code/Magento/InventoryApi/Test/Api/StockRepository/UpdateTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/StockRepository/UpdateTest.php
@@ -17,7 +17,7 @@ class UpdateTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock';
+ const RESOURCE_PATH = '/V1/inventory/stocks';
const SERVICE_NAME = 'inventoryApiStockRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/StockRepository/ValidationTest.php b/app/code/Magento/InventoryApi/Test/Api/StockRepository/ValidationTest.php
index 89783ebffd10..bab7d5ce0c2a 100644
--- a/app/code/Magento/InventoryApi/Test/Api/StockRepository/ValidationTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/StockRepository/ValidationTest.php
@@ -17,7 +17,7 @@ class ValidationTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock';
+ const RESOURCE_PATH = '/V1/inventory/stocks';
const SERVICE_NAME = 'inventoryApiStockRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/GetStockSourceLinksTest.php b/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/GetStockSourceLinksTest.php
index 7b256e2cf5d2..205d92f9ae16 100644
--- a/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/GetStockSourceLinksTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/GetStockSourceLinksTest.php
@@ -19,7 +19,7 @@ class GetStockSourceLinksTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock-source-link';
+ const RESOURCE_PATH = '/V1/inventory/stock-source-links';
const SERVICE_NAME = 'inventoryApiGetStockSourceLinksV1';
/**#@-*/
diff --git a/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/StockSourceLinksDeleteTest.php b/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/StockSourceLinksDeleteTest.php
index 9d9c78b27031..97e011695b64 100644
--- a/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/StockSourceLinksDeleteTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/StockSourceLinksDeleteTest.php
@@ -18,8 +18,9 @@ class StockSourceLinksDeleteTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock-source-link';
+ const RESOURCE_PATH = '/V1/inventory/stock-source-links';
const RESOURCE_DELETE_PATH = '/V1/inventory/stock-source-links-delete';
+
const SERVICE_NAME_SAVE = 'inventoryApiStockSourceLinksSaveV1';
const SERVICE_NAME_DELETE = 'inventoryApiStockSourceLinksDeleteV1';
const SERVICE_NAME_GET_LIST = 'inventoryApiGetStockSourceLinksV1';
diff --git a/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/StockSourceLinksSaveTest.php b/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/StockSourceLinksSaveTest.php
index 1f0e672cdbd0..3c12d1c24ae9 100644
--- a/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/StockSourceLinksSaveTest.php
+++ b/app/code/Magento/InventoryApi/Test/Api/StockSourceLink/StockSourceLinksSaveTest.php
@@ -18,7 +18,7 @@ class StockSourceLinksSaveTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock-source-link';
+ const RESOURCE_PATH = '/V1/inventory/stock-source-links';
const SERVICE_NAME_SAVE = 'inventoryApiStockSourceLinksSaveV1';
const SERVICE_NAME_DELETE = 'inventoryApiStockSourceLinksDeleteV1';
const SERVICE_NAME_GET_LIST = 'inventoryApiGetStockSourceLinksV1';
diff --git a/app/code/Magento/InventoryApi/Test/Mftf/Metadata/source-meta.xml b/app/code/Magento/InventoryApi/Test/Mftf/Metadata/source-meta.xml
index 01de3a6bc5c4..bb529560ab93 100644
--- a/app/code/Magento/InventoryApi/Test/Mftf/Metadata/source-meta.xml
+++ b/app/code/Magento/InventoryApi/Test/Mftf/Metadata/source-meta.xml
@@ -9,7 +9,7 @@
+ auth="adminOauth" url="/V1/inventory/sources" method="POST">
application/json
+ auth="adminOauth" url="/V1/inventory/sources/{source_code}" method="DELETE">
application/json
diff --git a/app/code/Magento/InventoryApi/Test/Mftf/Metadata/stock-meta.xml b/app/code/Magento/InventoryApi/Test/Mftf/Metadata/stock-meta.xml
index 45a01d48212c..ac011fc4a3f8 100644
--- a/app/code/Magento/InventoryApi/Test/Mftf/Metadata/stock-meta.xml
+++ b/app/code/Magento/InventoryApi/Test/Mftf/Metadata/stock-meta.xml
@@ -9,7 +9,7 @@
+ auth="adminOauth" url="/V1/inventory/stocks" method="POST">
application/json
+ auth="adminOauth" url="/V1/inventory/stocks/{return}" method="DELETE">
application/json
diff --git a/app/code/Magento/InventoryApi/Test/Mftf/Metadata/stock-source-link-meta.xml b/app/code/Magento/InventoryApi/Test/Mftf/Metadata/stock-source-link-meta.xml
index de1593b558aa..40e582967426 100644
--- a/app/code/Magento/InventoryApi/Test/Mftf/Metadata/stock-source-link-meta.xml
+++ b/app/code/Magento/InventoryApi/Test/Mftf/Metadata/stock-source-link-meta.xml
@@ -8,7 +8,7 @@
-
+
application/json
source-stock-link
diff --git a/app/code/Magento/InventoryApi/etc/webapi.xml b/app/code/Magento/InventoryApi/etc/webapi.xml
index 415464a1586e..1a3f96081f41 100644
--- a/app/code/Magento/InventoryApi/etc/webapi.xml
+++ b/app/code/Magento/InventoryApi/etc/webapi.xml
@@ -8,25 +8,25 @@
-
+
-
+
-
+
-
+
@@ -39,50 +39,50 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -95,13 +95,13 @@
-
+
-
+
diff --git a/app/code/Magento/InventoryCatalog/Test/Api/GetDefaultSourceTest.php b/app/code/Magento/InventoryCatalog/Test/Api/GetDefaultSourceTest.php
index ebe7a75520e7..43cb83320c22 100644
--- a/app/code/Magento/InventoryCatalog/Test/Api/GetDefaultSourceTest.php
+++ b/app/code/Magento/InventoryCatalog/Test/Api/GetDefaultSourceTest.php
@@ -34,7 +34,7 @@ public function testGetDefaultSource()
$defaultSourceCode = $this->defaultSourceProvider->getCode();
$serviceInfo = [
'rest' => [
- 'resourcePath' => '/V1/inventory/source/' . $defaultSourceCode,
+ 'resourcePath' => '/V1/inventory/sources/' . $defaultSourceCode,
'httpMethod' => Request::HTTP_METHOD_GET,
],
'soap' => [
diff --git a/app/code/Magento/InventoryCatalog/Test/Api/GetDefaultStockTest.php b/app/code/Magento/InventoryCatalog/Test/Api/GetDefaultStockTest.php
index 30aaab34d436..8342fedc2ad1 100644
--- a/app/code/Magento/InventoryCatalog/Test/Api/GetDefaultStockTest.php
+++ b/app/code/Magento/InventoryCatalog/Test/Api/GetDefaultStockTest.php
@@ -34,7 +34,7 @@ public function testGetDefaultSource()
$defaultStockId = $this->defaultStockProvider->getId();
$serviceInfo = [
'rest' => [
- 'resourcePath' => '/V1/inventory/stock/' . $defaultStockId,
+ 'resourcePath' => '/V1/inventory/stocks/' . $defaultStockId,
'httpMethod' => Request::HTTP_METHOD_GET,
],
'soap' => [
diff --git a/app/code/Magento/InventoryCatalog/Test/Api/StockRepository/PreventDefaultStockDeletingTest.php b/app/code/Magento/InventoryCatalog/Test/Api/StockRepository/PreventDefaultStockDeletingTest.php
index e25e93acaf22..c9cf378a6f2a 100644
--- a/app/code/Magento/InventoryCatalog/Test/Api/StockRepository/PreventDefaultStockDeletingTest.php
+++ b/app/code/Magento/InventoryCatalog/Test/Api/StockRepository/PreventDefaultStockDeletingTest.php
@@ -33,7 +33,7 @@ public function testCouldNotDeleteException()
{
$serviceInfo = [
'rest' => [
- 'resourcePath' => '/V1/inventory/stock/' . $this->defaultStockProvider->getId(),
+ 'resourcePath' => '/V1/inventory/stocks/' . $this->defaultStockProvider->getId(),
'httpMethod' => Request::HTTP_METHOD_DELETE,
],
'soap' => [
diff --git a/app/code/Magento/InventoryCatalog/Test/Api/StockSourceLink/PreventAssignSourcesToDefaultStockTest.php b/app/code/Magento/InventoryCatalog/Test/Api/StockSourceLink/PreventAssignSourcesToDefaultStockTest.php
index 1a04d4486de2..dbb00b92c48e 100644
--- a/app/code/Magento/InventoryCatalog/Test/Api/StockSourceLink/PreventAssignSourcesToDefaultStockTest.php
+++ b/app/code/Magento/InventoryCatalog/Test/Api/StockSourceLink/PreventAssignSourcesToDefaultStockTest.php
@@ -19,7 +19,7 @@ class PreventAssignSourcesToDefaultStockTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH_ASSIGN_SOURCES_TO_STOCK = '/V1/inventory/stock-source-link';
+ const RESOURCE_PATH_ASSIGN_SOURCES_TO_STOCK = '/V1/inventory/stock-source-links';
const SERVICE_NAME_ASSIGN_SOURCES_TO_STOCK = 'inventoryApiStockSourceLinksSaveV1';
/**#@-*/
@@ -102,10 +102,6 @@ public function dataProviderWrongParameters(): array
'message' => 'Can not save link related to Default Source or Default Stock',
'parameters' => [],
],
- [
- 'message' => 'Can not save link related to Default Source or Default Stock',
- 'parameters' => [],
- ],
],
],
],
diff --git a/app/code/Magento/InventoryCatalogApi/Test/Api/PreventDefaultSourceDisablingTest.php b/app/code/Magento/InventoryCatalogApi/Test/Api/PreventDefaultSourceDisablingTest.php
index 2b1ba5ac4835..1156281e68a9 100644
--- a/app/code/Magento/InventoryCatalogApi/Test/Api/PreventDefaultSourceDisablingTest.php
+++ b/app/code/Magento/InventoryCatalogApi/Test/Api/PreventDefaultSourceDisablingTest.php
@@ -19,7 +19,7 @@ class PreventDefaultSourceDisablingTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/source';
+ const RESOURCE_PATH = '/V1/inventory/sources';
const SERVICE_NAME = 'inventoryApiSourceRepositoryV1';
/**#@-*/
diff --git a/app/code/Magento/InventorySalesApi/Test/Api/StockRepository/PreventAssignedToSalesChannelsStockDeletingTest.php b/app/code/Magento/InventorySalesApi/Test/Api/StockRepository/PreventAssignedToSalesChannelsStockDeletingTest.php
index f3414956a796..851533b6d329 100644
--- a/app/code/Magento/InventorySalesApi/Test/Api/StockRepository/PreventAssignedToSalesChannelsStockDeletingTest.php
+++ b/app/code/Magento/InventorySalesApi/Test/Api/StockRepository/PreventAssignedToSalesChannelsStockDeletingTest.php
@@ -22,7 +22,7 @@ public function testCouldNotDeleteException()
$stockId = 10;
$serviceInfo = [
'rest' => [
- 'resourcePath' => '/V1/inventory/stock/' . $stockId,
+ 'resourcePath' => '/V1/inventory/stocks/' . $stockId,
'httpMethod' => Request::HTTP_METHOD_DELETE,
],
'soap' => [
diff --git a/app/code/Magento/InventorySalesApi/Test/Api/StockRepository/SalesChannelManagementTest.php b/app/code/Magento/InventorySalesApi/Test/Api/StockRepository/SalesChannelManagementTest.php
index e680d68b4f9c..dec504f47ea7 100644
--- a/app/code/Magento/InventorySalesApi/Test/Api/StockRepository/SalesChannelManagementTest.php
+++ b/app/code/Magento/InventorySalesApi/Test/Api/StockRepository/SalesChannelManagementTest.php
@@ -18,7 +18,7 @@ class SalesChannelManagementTest extends WebapiAbstract
/**#@+
* Service constants
*/
- const RESOURCE_PATH = '/V1/inventory/stock';
+ const RESOURCE_PATH = '/V1/inventory/stocks';
const SERVICE_NAME = 'inventoryApiStockRepositoryV1';
/**#@-*/