1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
<!-- Source -->
<route url="/V1/inventory/sources" method="GET">
<service class="Magento\InventoryApi\Api\SourceRepositoryInterface" method="getList"/>
<resources>
<resource ref="Magento_InventoryApi::source"/>
</resources>
</route>
<route url="/V1/inventory/sources/:sourceCode" method="GET">
<service class="Magento\InventoryApi\Api\SourceRepositoryInterface" method="get"/>
<resources>
<resource ref="Magento_InventoryApi::source"/>
</resources>
</route>
<route url="/V1/inventory/sources" method="POST">
<service class="Magento\InventoryApi\Api\SourceRepositoryInterface" method="save"/>
<resources>
<resource ref="Magento_InventoryApi::source_edit"/>
</resources>
</route>
<route url="/V1/inventory/sources/:sourceCode" method="PUT">
<service class="Magento\InventoryApi\Api\SourceRepositoryInterface" method="save"/>
<resources>
<resource ref="Magento_InventoryApi::source_edit"/>
</resources>
</route>
<route url="/V1/inventory/get-sources-assigned-to-stock-ordered-by-priority/:stockId" method="GET">
<service class="Magento\InventoryApi\Api\GetSourcesAssignedToStockOrderedByPriorityInterface" method="execute"/>
<resources>
<resource ref="Magento_InventoryApi::source"/>
</resources>
</route>
<!-- Stock -->
<route url="/V1/inventory/stocks" method="GET">
<service class="Magento\InventoryApi\Api\StockRepositoryInterface" method="getList"/>
<resources>
<resource ref="Magento_InventoryApi::stock"/>
</resources>
</route>
<route url="/V1/inventory/stocks/:stockId" method="GET">
<service class="Magento\InventoryApi\Api\StockRepositoryInterface" method="get"/>
<resources>
<resource ref="Magento_InventoryApi::stock"/>
</resources>
</route>
<route url="/V1/inventory/stocks" method="POST">
<service class="Magento\InventoryApi\Api\StockRepositoryInterface" method="save"/>
<resources>
<resource ref="Magento_InventoryApi::stock_edit"/>
</resources>
</route>
<route url="/V1/inventory/stocks/:stockId" method="DELETE">
<service class="Magento\InventoryApi\Api\StockRepositoryInterface" method="deleteById"/>
<resources>
<resource ref="Magento_InventoryApi::stock_delete"/>
</resources>
</route>
<route url="/V1/inventory/stocks/:stockId" method="PUT">
<service class="Magento\InventoryApi\Api\StockRepositoryInterface" method="save"/>
<resources>
<resource ref="Magento_InventoryApi::stock_edit"/>
</resources>
</route>
<!-- StockSourceLink -->
<route url="/V1/inventory/stock-source-links" method="GET">
<service class="Magento\InventoryApi\Api\GetStockSourceLinksInterface" method="execute"/>
<resources>
<resource ref="Magento_InventoryApi::stock_source_link"/>
</resources>
</route>
<route url="/V1/inventory/stock-source-links" method="POST">
<service class="Magento\InventoryApi\Api\StockSourceLinksSaveInterface" method="execute"/>
<resources>
<resource ref="Magento_InventoryApi::stock_source_link"/>
</resources>
</route>
<route url="/V1/inventory/stock-source-links-delete" method="POST">
<service class="Magento\InventoryApi\Api\StockSourceLinksDeleteInterface" method="execute"/>
<resources>
<resource ref="Magento_InventoryApi::stock_source_link"/>
</resources>
</route>
<!-- SourceItem -->
<route url="/V1/inventory/source-items" method="GET">
<service class="Magento\InventoryApi\Api\SourceItemRepositoryInterface" method="getList"/>
<resources>
<resource ref="Magento_InventoryApi::source"/>
</resources>
</route>
<route url="/V1/inventory/source-items" method="POST">
<service class="Magento\InventoryApi\Api\SourceItemsSaveInterface" method="execute"/>
<resources>
<resource ref="Magento_InventoryApi::source"/>
</resources>
</route>
<route url="/V1/inventory/source-items-delete" method="POST">
<service class="Magento\InventoryApi\Api\SourceItemsDeleteInterface" method="execute"/>
<resources>
<resource ref="Magento_InventoryApi::source"/>
</resources>
</route>
</routes>