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

Commit a0bb394

Browse files
ENGCOM-2992: add support HTTP DELETE method for async bulk request by adding mergi… #15
- Merge Pull Request magento-commerce/async-import#15 from comwrap/async-import:support-HTTP_DELETE-for-bulk - Merged commits: 1. 9ec6db2
2 parents ca42048 + 9ec6db2 commit a0bb394

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)