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-06-03 13:12:01 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"receivedArguments": { "description": "Liste des arguments reçus par la méthode", "type": "array<mixed>" }
|
2016-04-18 08:30:40 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
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-30 09:33:01 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"markdown": {
|
|
|
|
"description": "Retourne une description en markdown des différents modules de l'API",
|
|
|
|
"permissions": [],
|
2016-06-03 08:58:01 +00:00
|
|
|
"options": { "download": true },
|
|
|
|
"parameters": {}
|
|
|
|
},
|
|
|
|
|
|
|
|
"apiBlueprint": {
|
|
|
|
"description": "Retourne une documentation de l'API au format API Blueprint.",
|
|
|
|
"permissions": [],
|
|
|
|
"options": { "download": true },
|
2016-04-30 09:33:01 +00:00
|
|
|
"parameters": {}
|
2016-04-18 08:30:40 +00:00
|
|
|
}
|
|
|
|
},
|
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-06-03 13:12:01 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"id_user": { "description": "Identifiant de l'utilisateur connecté", "type": "id" }
|
2016-04-12 13:16:10 +00:00
|
|
|
}
|
2016-04-12 14:47:06 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"logout": {
|
|
|
|
"description": "Deconnexion",
|
2016-10-24 13:47:28 +00:00
|
|
|
"permissions": ["admin"],
|
2016-04-12 14:47:06 +00:00
|
|
|
"parameters": {}
|
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-18 20:45:55 +00:00
|
|
|
"parameters": {
|
2016-04-14 12:59:21 +00:00
|
|
|
"id_user": { "description": "UID de l'utilisateur recherche.", "type": "id" }
|
2016-06-03 13:12:01 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"user": { "description": "Propriétés de l'utilisateur en question.", "type": "array<mixed>" }
|
2016-04-14 12:59:21 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"getAll": {
|
|
|
|
"description": "Retourne les informations de tous les utilisateurs.",
|
|
|
|
"permissions": ["admin"],
|
2016-06-03 13:12:01 +00:00
|
|
|
"parameters": {},
|
|
|
|
"output": {
|
|
|
|
"users": { "description": "Propriétés de tous les utilisateurs existants.", "type": "array<array<mixed>>" }
|
|
|
|
}
|
2016-04-14 12:59:21 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"create": {
|
2016-10-24 13:34:18 +00:00
|
|
|
"description": "Creation d'un nouvel administrateur.",
|
2016-04-14 12:59:21 +00:00
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
2016-10-24 13:34:18 +00:00
|
|
|
"login": { "description": "Login de l'administrateur, 30 caracteres maximum.", "type": "varchar(3,30)" },
|
|
|
|
"password": { "description": "Mot de passe de l'administrateur.", "type": "text" },
|
|
|
|
"mail": { "description": "Adresse mail de l'administrateur.", "type": "mail" }
|
2016-06-03 13:12:01 +00:00
|
|
|
},
|
|
|
|
"output": {
|
2016-10-24 13:34:18 +00:00
|
|
|
"id_user": { "description": "Identifiant de l'administrateur créé", "type": "id" }
|
2016-04-14 12:59:21 +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
|
|
|
}
|
2016-09-26 08:01:38 +00:00
|
|
|
|
2016-04-12 13:16:10 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"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": {
|
2016-04-19 12:35:40 +00:00
|
|
|
"description": "Création d'un token de nom et de durée donnée",
|
2016-04-12 14:47:06 +00:00
|
|
|
"permissions": ["admin"],
|
2016-04-12 13:16:10 +00:00
|
|
|
"parameters": {
|
2016-04-19 12:35:40 +00:00
|
|
|
"name": { "description": "Nom attribué au token", "type": "varchar(3,50)" },
|
|
|
|
"duration": { "description": "Durée du token en nombre de jours", "type": "id" }
|
2016-06-03 13:28:17 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"id_token": { "description": "Identifiant du token généré", "type": "id" }
|
2016-04-12 13:16:10 +00:00
|
|
|
}
|
|
|
|
}
|
2016-04-18 16:56:31 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"subject": {
|
|
|
|
|
2016-05-26 14:33:00 +00:00
|
|
|
"search": {
|
|
|
|
"description": "Recherche d'un sujet par nom",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
2016-11-05 10:59:42 +00:00
|
|
|
"name": { "description": "Le nom du sujet", "type": "varchar(0,50)" }
|
2016-06-03 13:28:17 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"results": { "description": "Liste des sujet associés aux mots-clés.", "type": "array<array<mixed>>" }
|
2016-05-26 14:33:00 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2016-05-27 10:50:32 +00:00
|
|
|
"getFriends": {
|
|
|
|
"description": "Retourne les informations de tous les contacts renseignés par un sujet d'enquête.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
|
|
|
"subject_id": { "description": "Identifiant du sujet duquel on veut les amis.", "type": "id" }
|
2016-06-03 13:28:17 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"subjects": { "description": "Liste des sujet renseignés par le sujet donné.", "type": "array<array<mixed>>" }
|
2016-05-27 10:50:32 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2016-04-18 16:56:31 +00:00
|
|
|
"getAll": {
|
|
|
|
"description": "Retourne les informations de tous les sujets.",
|
|
|
|
"permissions": ["admin"],
|
2016-06-03 13:28:17 +00:00
|
|
|
"parameters": {},
|
|
|
|
"output": {
|
|
|
|
"subjects": { "description": "Liste de tous les sujet.", "type": "array<array<mixed>>" }
|
|
|
|
}
|
2016-04-18 16:56:31 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"create": {
|
|
|
|
"description": "Creation d'un nouveau sujet.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
2016-05-27 08:39:39 +00:00
|
|
|
"name" : { "description": "Pseudo du sujet, 50 caracteres maximum.", "type": "varchar(1,50)" }
|
2016-06-03 13:28:17 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"id_subject": { "description": "Identifiant du sujet créé.", "type": "id" }
|
2016-05-09 09:01:43 +00:00
|
|
|
}
|
2016-04-18 16:56:31 +00:00
|
|
|
}
|
|
|
|
|
2016-04-20 12:40:44 +00:00
|
|
|
},
|
|
|
|
|
2016-04-30 10:19:51 +00:00
|
|
|
"input": {
|
|
|
|
|
2016-11-24 16:21:32 +00:00
|
|
|
"surveysync": {
|
|
|
|
"description": "Enregistre les données d'une enquête lab-surveys.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
|
|
|
"subject": { "description": "Id du sujet concerné.", "type": "id" },
|
|
|
|
"contacts": { "description": "Données des contacts de l'enquête.", "type": "array<array>" },
|
|
|
|
"mini": { "description": "Mini fiches relations sur les contacts de l'enquête.", "type": "array<array>" },
|
|
|
|
"fiches": { "description": "Fiches relation sur les plus proches contacts de l'enquête.", "type": "array<array>" },
|
|
|
|
"matrice": { "description": "Matrice contenant les relations entre les plus proches contacts", "type": "array<array>", "optional": true }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"subject_id": { "description": "Identifiant du sujet complété", "type": "id" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2016-04-30 10:19:51 +00:00
|
|
|
"phone": {
|
|
|
|
"description": "Enregistre les données d'une enquête téléphonique.",
|
2016-04-30 14:50:46 +00:00
|
|
|
"permissions": ["admin"],
|
2016-04-30 10:19:51 +00:00
|
|
|
"parameters": {
|
2016-12-13 18:37:44 +00:00
|
|
|
"subject": { "description": "Données du sujet (id, etc)", "type": "array<mixed>" },
|
2016-05-13 16:26:30 +00:00
|
|
|
"contacts": { "description": "Données des contacts de l'enquête.", "type": "array<array>" },
|
|
|
|
"mini": { "description": "Mini fiches relations sur les contacts de l'enquête.", "type": "array<array>" },
|
|
|
|
"fiches": { "description": "Fiches relation sur les plus proches contacts de l'enquête.", "type": "array<array>" },
|
|
|
|
"matrice": { "description": "Matrice contenant les relations entre les plus proches contacts", "type": "array<array>", "optional": true }
|
2016-06-03 13:28:17 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"subject_id": { "description": "Identifiant du sujet complété", "type": "id" }
|
2016-05-18 14:21:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"facebook": {
|
|
|
|
"description": "Enregistre les données d'une enquête facebook.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
2016-12-13 18:37:44 +00:00
|
|
|
"subject": { "description": "Données du sujet (id, etc)", "type": "array<mixed>" },
|
2016-05-18 14:21:42 +00:00
|
|
|
"contacts": { "description": "Données des contacts de l'enquête.", "type": "array<array>" },
|
|
|
|
"mini": { "description": "Mini fiches relations sur les contacts de l'enquête.", "type": "array<array>" },
|
|
|
|
"fiches": { "description": "Fiches relation sur les plus proches contacts de l'enquête.", "type": "array<array>" },
|
|
|
|
"matrice": { "description": "Matrice contenant les relations entre les plus proches contacts", "type": "array<array>", "optional": true }
|
2016-06-03 13:28:17 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"subject_id": { "description": "Identifiant du sujet complété", "type": "id" }
|
2016-04-30 10:19:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
2016-04-20 12:40:44 +00:00
|
|
|
"upload": {
|
2016-04-04 09:47:17 +00:00
|
|
|
|
2016-06-03 13:28:17 +00:00
|
|
|
"local_data": {
|
|
|
|
"description": "Upload d'une sauvegarde de formulaire local au format .json.",
|
2016-05-24 07:01:16 +00:00
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {
|
2016-06-03 13:28:17 +00:00
|
|
|
"file": { "description": "Fichier du de sauvegarde de formulaire local.", "type": "FILE" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"local_data": { "description": "Contenu formatté du fichier.", "type": "array<mixed>"}
|
2016-05-24 07:01:16 +00:00
|
|
|
}
|
2016-04-20 12:40:44 +00:00
|
|
|
}
|
|
|
|
|
2016-05-12 20:13:37 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"download": {
|
|
|
|
|
2016-05-20 17:43:37 +00:00
|
|
|
"multiple": {
|
|
|
|
"description": "Download des données relatives aux sujets donnés.",
|
2016-05-18 14:21:42 +00:00
|
|
|
"permissions": ["admin"],
|
|
|
|
"options": { "download": true },
|
|
|
|
"parameters": {
|
2016-05-21 16:27:10 +00:00
|
|
|
"subjects": { "description": "Identifiants des sujets d'enquêtes à intégrer.", "type": "array<id>", "optional": true },
|
|
|
|
"all": { "description": "Si vaut TRUE, renvoie tous les sujets enregistrés.", "type": "boolean", "optional": true }
|
2016-05-18 14:21:42 +00:00
|
|
|
}
|
2016-06-01 15:06:18 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"chart": {
|
|
|
|
"description": "Download des données relatives aux sujets donnés sur le principe noeuds+liens.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"options": { "download": true },
|
|
|
|
"parameters": {
|
|
|
|
"subjects": { "description": "Identifiants des sujets d'enquêtes à intégrer.", "type": "array<id>", "optional": true },
|
|
|
|
"all": { "description": "Si vaut TRUE, renvoie tous les sujets enregistrés.", "type": "boolean", "optional": true }
|
|
|
|
}
|
2016-09-11 10:06:40 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"menu": {
|
|
|
|
"description": "Contenu de la configuration du menu.",
|
|
|
|
"permissions": ["admin"],
|
|
|
|
"parameters": {},
|
|
|
|
"output": {
|
|
|
|
"menu": { "description": "Contenu formatté de la configuration du menu.", "type": "array<mixed>" }
|
|
|
|
}
|
2016-05-12 20:13:37 +00:00
|
|
|
}
|
2016-04-20 12:40:44 +00:00
|
|
|
}
|
2016-04-18 06:42:26 +00:00
|
|
|
}
|