Cakephp 3.x routes and resources


i am new in cakephp and i am trying to develope an exercise about ajax call and datatables jquety plugin

  1. data are retrieved from a table called ousers
  2. clicking on a button fires the ajax request which should fill the table

this is the controller Ousers (omitting edit, delete view…)

namespace App\Controller;

use App\Controller\AppController;

class OusersController extends AppController

     * Index method
     * @return void
    public function initialize() {

    public function index()
			//nothing to do...
    public function getusers(){
            'recordsTotal'=> 5,
            'recordsFiltered'=> 5,
        echo json_encode($json_data);

Following is the view (index.ctp)

    <table id="users-table" class="display" cellspacing="0" width="100%">
<div class="upload-frm">
    <input type="button" onclick="jsUsers();" value="click" />

and finally the js script

function jsUsers(){
        $('#users-table').dataTable( {
            "processing": true,
            "serverSide": true,
            type: 'post',
            url: "<?php echo Cake\Routing\Router::url(
               '_full' => true //for full url path
            dataType: 'json',
            error: function(e) {
                    alert("An error occurred: " + e.responseText.message);
        },"columns": [
                { "ousers": "id" },
                { "ousers": "nome" },
                { "ousers": "cognome" },
                { "ousers": "email" }
        } );

i connect to http://localhost:8765/ousers/ then click on the button and i get a message like
"message": “Controller class Getusers could not be found.”,
** rl**": “/ousers/getusers.json”,**

so i think the problem is in the routing configuration for the resource:

Router::scope(’/ousers’, function ($routes) {

what is missing? thanks