title: PrestaShop: Can't access newly added resource through webservice
body: <p>I have created users table in Prestashop database in phpMyAdmin, the schema of that table is :</p>
  
  <pre><code>CREATE TABLE users (
   id int NOT NULL AUTO_INCREMENT,
   Token int NOT NULL,
   PRIMARY KEY (id),
   UNIQUE KEY (Token)
  );
  </code></pre>
  
  <p>I want to add this table in my webservice resource list as like other resources and access that resource from another application.</p>
  
  <p>To do this I have done so far the following tasks:</p>
  
  <ol>
  <li><p>I have created <code>/prestashop/mymodule/override/classes/webservice/ WebserviceRequest.php</code>:</p>
  
  <pre><code>class WebserviceRequest extends WebserviceRequestCore {
      public static function getResources(){
          $resources = parent::getResources();
          $resources['users'] = array('description' =&gt; 'Device registration', 'class' =&gt; 'Users');
          ksort($resources);
          return $resources;
      }
  }
  </code></pre></li>
  <li><p>and <code>/prestashop/mymodule/override/classes/Users.php</code>:</p>
  
  <pre><code>class Users extends ObjectModel {
      public static $definition = array(
          'table' =&gt; 'users',
          'primary' =&gt; 'id',
          'fields' =&gt; array(
              'Token' =&gt; array('type' =&gt; self::TYPE_INT)
          )
       );
      protected $webserviceParameters = array();
   }
  </code></pre></li>
  </ol>
  
  <p>As a result I found the table in webservice resource list. But when I hit the URL: <code>example.com/api/users</code> no XML data is returned.</p>
  
  <p>I have googled a lot for the problem but didn't find any effective solution for: How to add a new database table <code>users</code> in webservice resources and access the resource using <code>example.com/api/users</code> URL.</p>