Skip to content

Commit 3a3839b

Browse files
committed
Add new constant for PATCH method
1 parent 1d7c283 commit 3a3839b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/Webapi/Model/Rest/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Config
2121
const HTTP_METHOD_DELETE = 'DELETE';
2222
const HTTP_METHOD_PUT = 'PUT';
2323
const HTTP_METHOD_POST = 'POST';
24+
const HTTP_METHOD_PATCH = 'PATCH';
2425
/**#@-*/
2526

2627
/**#@+

app/code/Magento/WebapiAsync/Model/ServiceConfig/Converter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Converter implements \Magento\Framework\Config\ConverterInterface
2828
\Magento\Webapi\Model\Rest\Config::HTTP_METHOD_POST,
2929
\Magento\Webapi\Model\Rest\Config::HTTP_METHOD_PUT,
3030
\Magento\Webapi\Model\Rest\Config::HTTP_METHOD_DELETE,
31-
'PATCH',
31+
\Magento\Webapi\Model\Rest\Config::HTTP_METHOD_PATCH
3232
];
3333

3434
/**

0 commit comments

Comments
 (0)