[module.professor] -Removed 'GET professor/stats'
This commit is contained in:
parent
d8e74ada8a
commit
466d197246
|
@ -1,29 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: lucas
|
||||
* Date: 27/02/18
|
||||
* Time: 16:19
|
||||
*/
|
||||
|
||||
namespace api\module\professor;
|
||||
|
||||
|
||||
use database\core\Repo;
|
||||
use database\repo\professor;
|
||||
|
||||
class statsController{
|
||||
public static function get($args){
|
||||
$idProf = 0;
|
||||
extract($args);
|
||||
|
||||
//get data from the database
|
||||
|
||||
/** @var professor $profRepo */
|
||||
$profRepo = Repo::getRepo("professor");
|
||||
$VH = $profRepo->getWithVH($idProf);
|
||||
|
||||
return ["data" => $VH];
|
||||
}
|
||||
|
||||
}
|
|
@ -184,17 +184,6 @@
|
|||
}
|
||||
},
|
||||
|
||||
|
||||
"stats": {
|
||||
"GET":{
|
||||
"des": "Get statistics of the professor",
|
||||
"per": [],
|
||||
"par":{
|
||||
"URL0": {"des" : "Id of the professor", "typ": "id", "ren": "idProf", "opt" : false}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"filter": {
|
||||
"POST": {
|
||||
"des": "Get matching professors (only ids) for a given filter",
|
||||
|
|
Loading…
Reference in New Issue