2016-02-04 18:23:16 +00:00
|
|
|
{
|
2016-07-02 15:46:59 +00:00
|
|
|
|
2016-07-02 16:35:34 +00:00
|
|
|
"module": {
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::method": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Test de l'API",
|
2017-01-30 18:59:06 +00:00
|
|
|
"permissions": ["warehouse"],
|
2016-07-02 16:35:34 +00:00
|
|
|
"parameters": {}
|
|
|
|
},
|
2016-02-16 13:32:33 +00:00
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::markdown": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Retourne une description en markdown des différents modules de l'API",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 16:35:34 +00:00
|
|
|
"options": { "download": true },
|
|
|
|
"parameters": {}
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::apiBlueprint": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Retourne une documentation de l'API au format API Blueprint.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 16:35:34 +00:00
|
|
|
"options": { "download": true },
|
|
|
|
"parameters": {}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"upload": {
|
2016-07-02 15:46:59 +00:00
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::call_log": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Upload d'un journal d'appel au format .xml. Retour des données de call_log/unserialize",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
|
|
|
"file": { "description": "Fichier du journal d'appel.", "type": "FILE" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"tmp_id": { "description": "Identifiant temporaire du journal d'appel", "type": "varchar(40,40)" },
|
|
|
|
"directory": { "description": "Annuaire des contacts trouvés", "type": "array<array<mixed>>" },
|
|
|
|
"call": { "description": "Liste des identifiants des contacts triés par nombre d'appels", "type": "array<id>" },
|
|
|
|
"sms": { "description": "Liste des identifiants des contacts triés par nombre de sms", "type": "array<id>" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-07-02 15:46:59 +00:00
|
|
|
|
2016-07-06 09:32:51 +00:00
|
|
|
"download": {
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::multiple": {
|
2016-07-06 09:32:51 +00:00
|
|
|
"description": "Download des données relatives aux sujets donnés.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"options": { "download": true },
|
|
|
|
"parameters": {
|
|
|
|
"subjects": { "description": "Identifiants des sujets d'enquêtes à intégrer.", "type": "array<id>", "optional": true },
|
|
|
|
"phone": { "description": "Si vaut TRUE, renvoie les sujets cellulaires.", "type": "boolean", "optional": true },
|
|
|
|
"facebook": { "description": "Si vaut TRUE, renvoie les sujet facebook.", "type": "boolean", "optional": true },
|
|
|
|
"survey": { "description": "Si vaut TRUE, renvoie les sujets ResTIC.", "type": "boolean", "optional": true },
|
|
|
|
"all": { "description": "Si vaut TRUE, renvoie tous les sujets enregistrés.", "type": "boolean", "optional": true }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2016-07-07 13:05:55 +00:00
|
|
|
|
2016-07-04 09:04:49 +00:00
|
|
|
"authentificationDefault": {
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::warehouse": {
|
2016-07-05 13:17:21 +00:00
|
|
|
"description": "Connexion de premier niveau : entrepot.",
|
2016-07-04 09:04:49 +00:00
|
|
|
"permissions": [],
|
|
|
|
"parameters": {
|
|
|
|
"name": { "description": "Nom de l'entrepot.", "type": "varchar(3,30,alphanumeric)" },
|
2017-02-17 14:13:48 +00:00
|
|
|
"password": { "description": "Mot de passe de l'entrepot.", "type": "text" }
|
2016-07-04 09:04:49 +00:00
|
|
|
},
|
2016-07-06 15:36:26 +00:00
|
|
|
"output": {
|
|
|
|
"status": { "description": "Status de la connexion.", "type": "boolean" }
|
|
|
|
}
|
2016-07-04 09:04:49 +00:00
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::admin": {
|
2016-07-05 13:17:21 +00:00
|
|
|
"description": "Connexion de second niveau : administrateur.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse"],
|
2016-07-04 09:04:49 +00:00
|
|
|
"parameters": {
|
2017-02-17 14:13:48 +00:00
|
|
|
"username": { "description": "Identifiant de l'administrateur.", "type": "varchar(1,30,alphanumeric)" },
|
2016-07-04 09:04:49 +00:00
|
|
|
"password": { "description": "Mot de passe de l'administrateur'.", "type": "text" }
|
|
|
|
},
|
2016-07-06 15:36:26 +00:00
|
|
|
"output": {
|
|
|
|
"status": { "description": "Status de la connexion.", "type": "boolean" }
|
|
|
|
}
|
2016-07-04 09:04:49 +00:00
|
|
|
}
|
|
|
|
},
|
2016-07-02 16:35:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
"userDefault": {
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::create": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Création d'un nouvel utilisateur.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"code": { "description": "Code RFID de l'utilisateur.", "type": "rfid" },
|
|
|
|
"username": { "description": "Identifiant de l'utilisateur.", "type": "varchar(1,30,alphanumeric)" },
|
2017-02-17 14:13:48 +00:00
|
|
|
"firstname": { "description": "Prénom de l'utilisateur.", "type": "varchar(3,30,letters)" },
|
|
|
|
"lastname": { "description": "Nom de l'utilisateur.", "type": "varchar(3,30,letters)" },
|
2016-07-21 09:04:18 +00:00
|
|
|
"mail": { "description": "Adresse mail de l'utilisateur.", "type": "mail" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-07-21 09:04:18 +00:00
|
|
|
"id_user": { "description": "UID de l'utilisateur créé.", "type": "id" }
|
2016-07-02 15:46:59 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::link": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Ajout d'un utilisateur à un groupe.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"id_cluster": { "description": "UID du groupe auquel rattacher.", "type": "id" },
|
|
|
|
"id_user": { "description": "UID de l'utilisateur à rattacher.", "type": "id" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
2016-07-02 16:35:34 +00:00
|
|
|
"output": {}
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
|
2016-07-02 16:35:34 +00:00
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::unlink": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Retrait d'un utilisateur d'un groupe",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"id_cluster": { "description": "UID du groupe auquel détacher.", "type": "id" },
|
|
|
|
"id_user": { "description": "UID de l'utilisateur à détacher.", "type": "id" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
2016-07-03 12:20:42 +00:00
|
|
|
"output": {}
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::search": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Recherche d'un utilisateur par mots-clés.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"keywords": { "description": "Mots-clés de la recherche.", "type": "text" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"users": { "description": "Liste des utilisateurs correspondants aux mots-clés.", "type": "array<mixed>" }
|
2016-07-02 15:46:59 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getAll": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Liste de tous les utilisateurs",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 16:35:34 +00:00
|
|
|
"parameters": {},
|
2016-07-02 15:46:59 +00:00
|
|
|
"output": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"users": { "description": "Liste de tous les utilisateurs.", "type": "array<array<mixed>>" }
|
2016-07-02 15:46:59 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getById": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Retourne un utilisateur spécifique.",
|
2016-07-04 15:44:21 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"id_user": { "description": "UID de l'utilisateur.", "type": "id" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"user": { "description": "Données de l'utilisateur.", "type": "array<mixed>" }
|
2016-07-02 15:46:59 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getByCode": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Retourne un utilisateur de Code RFID donné.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"code": { "description": "Code RFID de l'utilisateur.", "type": "rfid" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"user": { "description": "Données de l'utilisateur.", "type": "array<mixed>" }
|
2016-07-02 15:46:59 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getByUsername": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Retourne un utilisateur d'identifiant donné.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"username": { "description": "Identifiant de l'utilisateur.", "type": "varchar(1,30,alphanumeric)" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"user": { "description": "Données de l'utilisateur.", "type": "array<mixed>" }
|
2016-07-02 15:46:59 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getClusters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Retourne les groupes d'un utilisateur.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"id_user": { "description": "UID de l'utilisateur.", "type": "id" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"clusters": { "description": "Liste des groupes de l'utilisateur.", "type": "array<array<mixed>>" }
|
2016-07-02 15:46:59 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::edit": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Modifie les attributs d'un utilisateur.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"id_user": { "description": "UID de l'utilisateur.", "type": "id" },
|
|
|
|
"code": { "description": "Code RFID de l'utilisateur.", "type": "rfid", "optional": true },
|
|
|
|
"username": { "description": "Identifiant de l'utilisateur.", "type": "varchar(1,30,alphanumeric)", "optional": true },
|
2017-02-17 14:13:48 +00:00
|
|
|
"firstname": { "description": "Prénom de l'utilisateur.", "type": "varchar(3,30,letters)", "optional": true },
|
|
|
|
"lastname": { "description": "Nom de l'utilisateur.", "type": "varchar(3,30,letters)", "optional": true },
|
2016-07-02 16:35:34 +00:00
|
|
|
"mail": { "description": "Adresse mail de l'utilisateur.", "type": "mail", "optional": true },
|
|
|
|
"password": { "description": "Mot de passe de l'utilisateur.", "type": "text", "optional": true },
|
|
|
|
"status": { "description": "Status de l'utilisateur.", "type": "status", "optional": true }
|
2016-07-02 15:46:59 +00:00
|
|
|
|
2016-07-02 16:35:34 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"status": { "description": "Status de la modification.", "type": "boolean" }
|
|
|
|
}
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::delete": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"description": "Suppression d'un utilisateur.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-02 15:46:59 +00:00
|
|
|
"parameters": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"id_user": { "description": "UID de l'utilisateur.", "type": "id" }
|
2016-07-02 15:46:59 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-07-02 16:35:34 +00:00
|
|
|
"status": { "description": "Status de la suppression.", "type": "boolean" }
|
2016-07-02 15:46:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-03 12:57:25 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"machineDefault": {
|
2016-07-07 15:59:31 +00:00
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::sync": {
|
2016-07-07 15:59:31 +00:00
|
|
|
"description": "Synchronisation d'une machine.",
|
2016-07-09 10:44:06 +00:00
|
|
|
"permissions": ["warehouse"],
|
2016-07-07 15:59:31 +00:00
|
|
|
"parameters": {
|
2016-07-17 08:27:59 +00:00
|
|
|
"token": { "description": "Code d'accès évolutif dynamique.", "type": "hash" },
|
|
|
|
"data": { "description": "Données (dépendent des modules).", "type": "array<mixed>" },
|
|
|
|
"renew": { "description": "Nouveau code d'accès.", "type": "hash", "optional": true }
|
2016-07-07 15:59:31 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"data": { "description": "Données (dépendent des modules).", "type": "array<mixed>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::init": {
|
2016-07-18 08:42:18 +00:00
|
|
|
"description": "Données d'initialisation d'une machine.",
|
2016-07-19 16:01:16 +00:00
|
|
|
"permissions": ["warehouse"],
|
|
|
|
"parameters": {
|
|
|
|
"id_machine": { "description": "UID de la machine.", "type": "id" }
|
|
|
|
},
|
2016-07-18 08:42:18 +00:00
|
|
|
"output": {
|
|
|
|
"data": { "description": "Données d'initialisation.", "type": "array<mixed>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::create": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Création d'une nouvelle machine.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {
|
2017-02-17 14:13:48 +00:00
|
|
|
"name": { "description": "Nom de la machine.", "type": "varchar(1,30,letters)" }
|
2016-07-03 12:57:25 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-07-21 09:04:18 +00:00
|
|
|
"id_machine": { "description": "UID de la machine.", "type": "id" }
|
2016-07-03 12:57:25 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::link": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Ajout d'une machine à un groupe.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {
|
|
|
|
"id_machine": { "description": "UID de la machine.", "type": "id" },
|
|
|
|
"id_cluster": { "description": "UID du groupe de la machine.", "type": "id" }
|
|
|
|
},
|
|
|
|
"output": {}
|
|
|
|
},
|
2016-07-02 15:46:59 +00:00
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::unlink": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Retrait d'une machine d'un groupe.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {
|
|
|
|
"id_machine": { "description": "UID de la machine.", "type": "id" },
|
|
|
|
"id_cluster": { "description": "UID du groupe de la machine.", "type": "id" }
|
|
|
|
},
|
|
|
|
"output": {}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::search": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Recherche une machine par mots-clés.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {
|
|
|
|
"keywords": { "description": "Mots-clés de recherche de machine", "type": "text" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"machines": { "description": "Liste des machines correspondant à la recherche.", "type": "array<array<mixed>>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getAll": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Retourne la liste de toutes les machines.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {},
|
|
|
|
"output": {
|
|
|
|
"machines": { "description": "Liste de toutes les machines.", "type": "array<array<mixed>>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getById": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Retourne les données d'une machine.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {
|
|
|
|
"id_machine": { "description": "UID de la machine.", "type": "id" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"machine": { "description": "Données de la machine.", "type": "array<mixed>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getByName": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Retourne les données d'une machine de nom donné.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {
|
2017-02-17 14:13:48 +00:00
|
|
|
"name": { "description": "Nom de la machine.", "type": "varchar(1,30,letters)" }
|
2016-07-03 12:57:25 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"machine": { "description": "Données de la machine.", "type": "array<mixed>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getClusters": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Retourne les groupes d'une machine.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {
|
|
|
|
"id_machine": { "description": "UID de la machine.", "type": "id" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"clusters": { "description": "Liste des groupes de la machine.", "type": "array<array<mixed>>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::edit": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Modifie les attributs d'une machine.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {
|
|
|
|
"id_machine": { "description": "UID de la machine.", "type": "id" },
|
2017-02-17 14:13:48 +00:00
|
|
|
"name": { "description": "Nom de la machine.", "type": "varchar(1,30,letters)", "optional": true }
|
2016-07-03 12:57:25 +00:00
|
|
|
},
|
|
|
|
"output": {}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::delete": {
|
2016-07-03 12:57:25 +00:00
|
|
|
"description": "Supprime une machine.",
|
2016-07-05 13:34:31 +00:00
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-03 12:57:25 +00:00
|
|
|
"parameters": {
|
|
|
|
"id_machine": { "description": "UID de la machine.", "type": "id" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"status": { "description": "Status de la suppression.", "type": "boolean" }
|
|
|
|
}
|
2017-02-19 17:07:04 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"POST::getState": {
|
|
|
|
"description": "Retourne l'état d'une machine.",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
|
|
|
"id_machine": { "description": "UID de la machine", "type": "id" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"state": { "description": "Etat de la machine", "type": "text" }
|
|
|
|
}
|
2016-07-03 12:57:25 +00:00
|
|
|
}
|
|
|
|
|
2016-07-08 15:47:03 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"clusterDefault": {
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::create": {
|
2016-07-08 15:47:03 +00:00
|
|
|
"description": "Création d'un nouveau groupe.",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
2017-02-17 14:13:48 +00:00
|
|
|
"name": { "description": "Nom du groupe.", "type": "varchar(1,30,letters)" },
|
2016-07-11 15:44:18 +00:00
|
|
|
"class": { "description": "Type de groupe.", "type": "id" }
|
2016-07-08 15:47:03 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"id_cluster": { "description": "UID du groupe créé.", "type": "id" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::search": {
|
2016-07-08 15:47:03 +00:00
|
|
|
"description": "Recherche d'un groupe par mots-clés.",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
2016-07-20 17:01:11 +00:00
|
|
|
"keywords": { "description": "Mots-clés de la recherche.", "type": "text" },
|
2016-07-20 23:19:19 +00:00
|
|
|
"class": { "description": "Type de groupe.", "type": "id", "optional": true }
|
2016-07-08 15:47:03 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"clusters": { "description": "Liste des groupes correspondants aux mots-clés.", "type": "array<mixed>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getAll": {
|
2016-07-08 15:47:03 +00:00
|
|
|
"description": "Liste de tous les groupes",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
2016-07-18 14:46:06 +00:00
|
|
|
"parameters": {
|
2017-02-16 17:34:38 +00:00
|
|
|
"class": { "description": "Type de groupe.", "type": "id" }
|
2016-07-18 14:46:06 +00:00
|
|
|
},
|
2016-07-08 15:47:03 +00:00
|
|
|
"output": {
|
|
|
|
"clusters": { "description": "Liste de tous les groupes.", "type": "array<array<mixed>>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getById": {
|
2016-07-08 15:47:03 +00:00
|
|
|
"description": "Retourne un groupe spécifique.",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
2016-07-18 14:46:06 +00:00
|
|
|
"id_cluster": { "description": "UID du groupe.", "type": "id" },
|
|
|
|
"class": { "description": "Type de groupe.", "type": "id" }
|
2016-07-08 15:47:03 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"cluster": { "description": "Données du groupe.", "type": "array<mixed>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getByName": {
|
2016-07-08 15:47:03 +00:00
|
|
|
"description": "Retourne un groupe de nom donné.",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
2017-02-17 14:13:48 +00:00
|
|
|
"name": { "description": "Nom du groupe.", "type": "varchar(1,30,letters)" },
|
2016-07-18 14:46:06 +00:00
|
|
|
"class": { "description": "Type de groupe.", "type": "id" }
|
2016-07-08 15:47:03 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"cluster": { "description": "Données du groupe.", "type": "array<mixed>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getMembers": {
|
2016-07-08 15:47:03 +00:00
|
|
|
"description": "Retourne les membres d'un groupe.",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
2016-07-18 14:46:06 +00:00
|
|
|
"id_cluster": { "description": "UID du groupe.", "type": "id" },
|
|
|
|
"class": { "description": "Type de groupe.", "type": "id" }
|
2016-07-08 15:47:03 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"members": { "description": "Liste des membres du groupe.", "type": "array<array<mixed>>" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::edit": {
|
2016-07-08 15:47:03 +00:00
|
|
|
"description": "Modifie le nom d'un groupe.",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
2016-07-20 17:41:43 +00:00
|
|
|
"id_cluster": { "description": "UID du groupe.", "type": "id" },
|
|
|
|
"class": { "description": "Type de groupe.", "type": "id" },
|
2017-02-17 14:13:48 +00:00
|
|
|
"name": { "description": "Nom du groupe.", "type": "varchar(1,30,letters)" }
|
2016-07-08 15:47:03 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"status": { "description": "Status de la modification.", "type": "boolean" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::delete": {
|
2016-07-08 15:47:03 +00:00
|
|
|
"description": "Suppression d'un groupe.",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
2016-07-18 14:46:06 +00:00
|
|
|
"id_cluster": { "description": "UID du groupe.", "type": "id" },
|
|
|
|
"class": { "description": "Type de groupe.", "type": "id" }
|
2016-07-08 15:47:03 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"status": { "description": "Status de la suppression.", "type": "boolean" }
|
|
|
|
}
|
2017-01-15 16:27:02 +00:00
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::addPermission": {
|
2017-01-15 16:27:02 +00:00
|
|
|
"description": "Ajout d'une permission",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
|
|
|
"id_source": { "description": "Groupe d'utilisateur source.", "type": "id" },
|
|
|
|
"id_target": { "description": "Groupe de machine cible.", "type": "id" },
|
|
|
|
"id_action": { "description": "Action en question.", "type": "id" }
|
|
|
|
},
|
|
|
|
"output": {}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::remPermission": {
|
2017-01-15 16:27:02 +00:00
|
|
|
"description": "Suppression d'une permission",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {
|
|
|
|
"id_source": { "description": "Groupe d'utilisateur source.", "type": "id" },
|
|
|
|
"id_target": { "description": "Groupe de machine cible.", "type": "id" },
|
|
|
|
"id_action": { "description": "Action en question.", "type": "id" }
|
|
|
|
},
|
|
|
|
"output": {}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getPermissions": {
|
2017-01-15 16:27:02 +00:00
|
|
|
"description": "Retourne la liste des permissions",
|
|
|
|
"permissions": ["warehouse","admin"],
|
|
|
|
"parameters": {},
|
|
|
|
"output": {
|
|
|
|
"permissions": { "description": "Liste des permissions", "type": "array" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getAuthenticatedClusters": {
|
2017-01-15 16:27:02 +00:00
|
|
|
"description": "Retourne les groupes d'utilisateurs ayant une action sur un groupe de machine.",
|
|
|
|
"permissions": ["warehouse","admin"],
|
|
|
|
"parameters": {
|
|
|
|
"id_target": { "description": "Groupe de machine cible.", "type": "id" },
|
|
|
|
"id_action": { "description": "Action en question.", "type": "id" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"clusters": { "description": "Liste des groupes d'utilisateurs.", "type": "array" }
|
|
|
|
}
|
2016-07-08 15:47:03 +00:00
|
|
|
}
|
|
|
|
|
2017-01-11 15:28:21 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"historyDefault": {
|
2017-01-30 17:39:21 +00:00
|
|
|
"POST::getAll": {
|
2017-01-11 15:28:21 +00:00
|
|
|
"description": "Retourne l'historique complet",
|
|
|
|
"permissions": ["warehouse", "admin"],
|
|
|
|
"parameters": {},
|
|
|
|
"output": {
|
|
|
|
"history": { "description": "Données de l'historique", "type": "array" }
|
|
|
|
}
|
|
|
|
}
|
2016-07-03 12:57:25 +00:00
|
|
|
}
|
2016-02-10 07:54:23 +00:00
|
|
|
|
2016-07-02 15:46:59 +00:00
|
|
|
}
|