Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit e5b60a5

Browse files
author
Stanislav Idolov
authored
ENGCOM-2992: add support HTTP DELETE method for async bulk request by adding mergi… #15
2 parents 5c578ed + a0bb394 commit e5b60a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/code/Magento/WebapiAsync/Controller/Rest/Asynchronous/InputParamsResolver.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ public function resolve()
9595
$this->requestValidator->validate();
9696
$webapiResolvedParams = [];
9797
$inputData = $this->request->getRequestData();
98+
99+
$httpMethod = $this->request->getHttpMethod();
100+
if ($httpMethod == \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_DELETE) {
101+
$requestBodyParams = $this->request->getBodyParams();
102+
$inputData = array_merge($requestBodyParams, $inputData);
103+
}
104+
98105
foreach ($inputData as $key => $singleEntityParams) {
99106
$webapiResolvedParams[$key] = $this->resolveBulkItemParams($singleEntityParams);
100107
}

0 commit comments

Comments
 (0)