2016-04-04 09:47:17 +00:00
|
|
|
{
|
2016-04-18 08:30:40 +00:00
|
|
|
"module": {
|
|
|
|
"method": {
|
|
|
|
"description": "Test de l'API",
|
|
|
|
"permissions": [],
|
|
|
|
"parameters": {}
|
|
|
|
},
|
|
|
|
|
|
|
|
"phpunitParams": {
|
|
|
|
"description": "Méthode utile à phpunit pour le test des paramètres.",
|
|
|
|
"permissions": [],
|
|
|
|
"parameters": {
|
|
|
|
"p1": { "description": "Texte", "type": "text" },
|
|
|
|
"p2": { "description": "Entier positif", "type": "id" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2016-04-18 16:56:31 +00:00
|
|
|
"phpunitOptionalParams": {
|
|
|
|
"description": "Méthode utile à phpunit pour le test des paramètres optionnels.",
|
|
|
|
"permissions": [],
|
|
|
|
"parameters": {
|
|
|
|
"p1": { "description": "Texte", "type": "text" },
|
|
|
|
"p2": { "description": "Texte", "type": "text", "optional": false },
|
|
|
|
"p3": { "description": "Entier positif (optionnel)", "type": "id", "optional": true }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2016-04-18 08:30:40 +00:00
|
|
|
"phpunitPermissions": {
|
|
|
|
"description": "Méthode utile à phpunit pour le test des permissions.",
|
|
|
|
"permissions": ["a", "b"],
|
|
|
|
"parameters": {}
|
|
|
|
}
|
|
|
|
},
|
2016-04-08 14:58:40 +00:00
|
|
|
|
2016-04-14 10:45:54 +00:00
|
|
|
"user": {
|
2016-04-12 13:16:10 +00:00
|
|
|
"login": {
|
2016-04-12 14:47:06 +00:00
|
|
|
"description": "Connexion avec un login (identifiant ou adresse mail) et un mot de passe.",
|
|
|
|
"permissions": [],
|
2016-04-12 13:16:10 +00:00
|
|
|
"parameters": {
|
2016-04-17 10:34:24 +00:00
|
|
|
"login": { "description": "Identifiant ou adresse mail", "type": "varchar(3,50)" },
|
|
|
|
"password": { "description": "Mot de passe", "type": "text" }
|
2016-04-12 13:16:10 +00:00
|
|
|
}
|
2016-04-12 14:47:06 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"logout": {
|
|
|
|
"description": "Deconnexion",
|
|
|
|
"permissions": [],
|
|
|
|
"parameters": {}
|
2016-04-14 10:45:54 +00:00
|
|
|
},
|
|
|
|
|
2016-04-18 06:42:26 +00:00
|
|
|
|
2016-04-14 10:45:54 +00:00
|
|
|
"getById": {
|
2016-04-14 16:49:07 +00:00
|
|
|
"description": "Retourne les informations d'un utilisateur.",
|
2016-04-14 10:45:54 +00:00
|
|
|
"permissions": ["admin"],
|
2016-04-14 12:59:21 +00:00
|
|
|
"parameters": {
|
|
|
|
"id_user": { "description": "UID de l'utilisateur recherche.", "type": "id" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2016-04-18 06:42:26 +00:00
|
|
|
|
2016-04-14 12:59:21 +00:00
|
|
|
"getAll": {
|
|
|
|
"description": "Retourne les informations de tous les utilisateurs.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {}
|
|
|
|
},
|
|
|
|
|
2016-04-18 06:42:26 +00:00
|
|
|
|
2016-04-14 12:59:21 +00:00
|
|
|
"create": {
|
|
|
|
"description": "Creation d'un nouvel utilisateur.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
2016-04-18 17:09:25 +00:00
|
|
|
"login" : { "description": "Login de l'utilisateur, 30 caracteres maximum.", "type": "varchar(3,30)" },
|
|
|
|
"password" : { "description": "Mot de passe de l'utilisateur.", "type": "text" },
|
|
|
|
"mail" : { "description": "Adresse mail de l'utilisateur.", "type": "mail" },
|
|
|
|
"reference" : { "description": "UID d'une personne d'un sondage, peut etre vide.", "type": "text" },
|
|
|
|
"permission" : { "description": "Permissions de l'utilisateur : 'admin' ou 'subject'", "type": "varchar(5,7)" }
|
2016-04-14 12:59:21 +00:00
|
|
|
}
|
2016-04-14 16:49:07 +00:00
|
|
|
},
|
|
|
|
|
2016-04-18 06:42:26 +00:00
|
|
|
|
2016-04-14 16:49:07 +00:00
|
|
|
"remove": {
|
|
|
|
"description": "Suppression d'un utilisateur.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
|
|
|
"id_user": { "description": "UID de l'utilisateur", "type": "id" }
|
|
|
|
}
|
2016-04-12 13:16:10 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"call_log": {
|
|
|
|
"unserialize": {
|
|
|
|
"description": "Recupere le contenu d'un fichier XML de journal d'appel.",
|
2016-04-18 14:21:24 +00:00
|
|
|
"permissions": [],
|
2016-04-12 13:16:10 +00:00
|
|
|
"parameters": {
|
2016-04-18 14:21:24 +00:00
|
|
|
"file_content": { "description": "Contenu du fichier XML", "type": "text" },
|
|
|
|
"phone_number": { "description": "Numéro de téléphone de l'interrogé.", "type": "phone_number" }
|
2016-04-12 13:16:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"charts": {
|
|
|
|
|
|
|
|
"network_data": {
|
|
|
|
"description": "Renvoie un jeu de donnees fictif pour un graphique de type #network.",
|
2016-04-12 22:29:18 +00:00
|
|
|
"permissions": [],
|
2016-04-12 13:16:10 +00:00
|
|
|
"parameters": {}
|
|
|
|
},
|
|
|
|
|
|
|
|
"network_render": {
|
|
|
|
"description": "Renvoie le contenu du svg representant un graphique de type #network avec les donnees recues.",
|
2016-04-13 11:36:49 +00:00
|
|
|
"permissions": [],
|
2016-04-12 13:16:10 +00:00
|
|
|
"parameters": {
|
|
|
|
"dataset": { "description": "Dataset au bon format pour un graphique de type #network." }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"token": {
|
|
|
|
|
|
|
|
|
|
|
|
"remove": {
|
|
|
|
"description": "Suppression d'un token d'id donne.",
|
2016-04-12 14:47:06 +00:00
|
|
|
"permissions": ["admin"],
|
2016-04-12 13:16:10 +00:00
|
|
|
"parameters": {
|
|
|
|
"token_id": { "description": "UID du token a supprimer", "type": "id" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"generate": {
|
|
|
|
"description": "Creation d'un token de nom et de duree donnee",
|
2016-04-12 14:47:06 +00:00
|
|
|
"permissions": ["admin"],
|
2016-04-12 13:16:10 +00:00
|
|
|
"parameters": {
|
2016-04-17 10:34:24 +00:00
|
|
|
"name" : { "description": "Nom attribue au token", "type": "varchar(3,50)" },
|
2016-04-12 13:23:54 +00:00
|
|
|
"duration": { "description": "Duree du token en nombre de jours", "type": "numeric" }
|
2016-04-12 13:16:10 +00:00
|
|
|
}
|
|
|
|
}
|
2016-04-18 16:56:31 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"subject": {
|
|
|
|
|
|
|
|
"getById": {
|
|
|
|
"description": "Retourne les informations d'un sujet.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
|
|
|
"id_user": { "description": "UID du sujet recherche.", "type": "id" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"getAll": {
|
|
|
|
"description": "Retourne les informations de tous les sujets.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"create": {
|
|
|
|
"description": "Creation d'un nouveau sujet.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
|
|
|
"username" : { "description": "Pseudo du sujet, 30 caracteres maximum.", "type": "varchar(3,30)" },
|
|
|
|
"firstname" : { "description": "Prénom du sujet, 30 caracteres maximum.", "type": "varchar(3,30)" },
|
|
|
|
"lastname" : { "description": "Nom du sujet, 30 caracteres maximum.", "type": "varchar(3,30)" },
|
|
|
|
"id_facebook": { "description": "Id facebook du sujet (optionnel).", "type": "id", "optional": true },
|
2016-04-18 17:09:25 +00:00
|
|
|
"number" : { "description": "Numéro de téléphone du sujet (optionnel).", "type": "text", "optional": true }
|
2016-04-18 16:56:31 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
2016-04-18 17:09:25 +00:00
|
|
|
"merge": {
|
|
|
|
"description": "Fusion de 2 sujets qui sont en fait la même personne.",
|
2016-04-18 16:56:31 +00:00
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
2016-04-18 17:09:25 +00:00
|
|
|
"id_source": { "description": "UID de l'utilisateur doublon", "type": "id" },
|
|
|
|
"id_target": { "description": "UID de l'utilisateur déjà existant", "type": "id" }
|
2016-04-18 16:56:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-12 13:16:10 +00:00
|
|
|
}
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-04-18 06:42:26 +00:00
|
|
|
}
|