techjoomla / com_api

API framework for Joomla
http://docs.techjoomla.com/joomla-rest-api/com-api-introduction
GNU General Public License v3.0
123 stars 97 forks source link

Save and show request method in logs #81

Closed coolbung closed 4 years ago

coolbung commented 6 years ago

Currently the request method is not visible in the logs. This should be saved in the DB and displayed on the logs page.

niteshkesarkar commented 4 years ago

Implementation Steps:

  $array['request_method'] = $input->getMethod();
manojLondhe commented 4 years ago

$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

manojLondhe commented 4 years ago

Closed in https://github.com/techjoomla/com_api/pull/112