Today we are going to talk about how to get params data in Magento 2 api.
You can use this class for this MagentoFrameworkWebapiRestRequest
And below code.
<?php
namespace MagemonkyesParamsModel;
use MagentoFrameworkWebapiRestRequest;
class GetpostParams
{
public function __construct(
Request $requestparam
) {
$this->requestparam = $requestparam;
}
public function getParampostgetValue()
{
$filter = $this->requestparam->getParam('name');
}
}
User can get this by code to call getParampostgetValue this function.

