title: How to add a new action into api.php as rest api in Mediawiki?
body: <p>I want to add a new action and link it to new model for example:</p>
  
  <p>I add the new module into </p>
  
  <pre><code>
  api.php?action=mynewaction
  
  class ApiMain extends ApiBase {
      /**
       * When no format parameter is given, this format will be used
       */
      const API_DEFAULT_FORMAT = 'xmlfm';
  
      /**
       * List of available modules: action name => module class
       */
      private static $Modules = array(
          'mynewaction' => 'Apimynewaction',
  
  </code></pre>
  
  <p>I still not able to enable the new action.</p>
  
  <pre><code>
  
  {
      "error": {
          "code": "unknown_action",
          "info": "Unrecognized value for parameter 'action': mynewaction",
          "*": "See http://localhost/mediawiki28/api.php for API usage"
      }
  }
  
  </code></pre>
  
  <p>If any one has information how to solve this problem</p>