Skip to content

Commit f77a05b

Browse files
committed
[TASK] Use one reference in Customer Webapi: use one Customer Id reference
1 parent d19e900 commit f77a05b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Customer/Api/CustomerRepositoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function save(\Magento\Customer\Api\Data\CustomerInterface $customer, $pa
3737
public function get($email, $websiteId = null);
3838

3939
/**
40-
* Get customer by customer ID.
40+
* Get customer by Customer ID.
4141
*
4242
* @param int $customerId
4343
* @return \Magento\Customer\Api\Data\CustomerInterface
@@ -69,7 +69,7 @@ public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCr
6969
public function delete(\Magento\Customer\Api\Data\CustomerInterface $customer);
7070

7171
/**
72-
* Delete customer by ID.
72+
* Delete customer by Customer ID.
7373
*
7474
* @param int $customerId
7575
* @return bool true on success

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
<resource ref="anonymous"/>
129129
</resources>
130130
</route>
131-
<route url="/V1/customers/:id" method="PUT">
131+
<route url="/V1/customers/:customerId" method="PUT">
132132
<service class="Magento\Customer\Api\CustomerRepositoryInterface" method="save"/>
133133
<resources>
134134
<resource ref="Magento_Customer::manage"/>

0 commit comments

Comments
 (0)