Closed coolbung closed 4 years ago
Implementation Steps:
administrator\components\com_api\sql\updates\mysql\2.5.2.sql
ALTER TABLE "#__api_logs" ADD "request_method" varchar(20) NOT NULL DEFAULT '';
function - getSortFields
) at following location
administrator\components\com_api\views\logs\view.html.php
'a.request_method' => JText::_('COM_API_LOGS_REQUEST_METHOD')
administrator\language\en-GB\en-GB.com_api.ini
COM_API_LOGS_REQUEST_METHOD="Request Method"
administrator\components\com_api\views\logs\tmpl\default.php
echo JText::_('COM_API_LOGS_REQUEST_METHOD'); echo $item->request_method;
administrator\components\com_api\tables\log.php
$array['request_method'] = $input->getMethod();
$array['request_method'] = $_SERVER['REQUEST_METHOD'];
@niteshkesarkar Looks OK, ensure to use Joomla's input class instead of using superglobals directly.
Connect with @thite-amol for more details if needed
Currently the request method is not visible in the logs. This should be saved in the DB and displayed on the logs page.