This commit is contained in:
xdrm-brackets 2016-09-09 11:02:56 +02:00
parent 28a478d506
commit 3800f65cee
4 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
"module": {
"method": {
"description": "Test de l'API",
"permissions": ["warehouse", "admin"],
"permissions": ["warehouse"],
"parameters": {}
},

View File

@ -129,4 +129,3 @@
//
// // USE CASE :: select(FIELD1, FIELD2, ...)
// mixed = ORM::Row->select('id_user', 'username');
?>

View File

@ -331,7 +331,7 @@
=========================================================*/
$actionsReq = new Repo('action/getAll');
$actions = ($actionsReq->error==0) ? $actionsReq->answer() : [];
var_dump($actionsReq->answer());
// var_dump($actionsReq->answer());
/* [2] On regroupe les actions par TIMEOUT
=========================================================*/

View File

@ -9,11 +9,11 @@
/* PERMET DE TESTER L'API
*
*/
public static function method(){
public static function method($params){
return [
'ModuleError' => ManagerError::Success,
'ReceivedArguments' => func_get_args()
'ReceivedArguments' => $params
];
}