Last active
June 29, 2017 10:29
-
-
Save angebagui/ffa3d3e4fd158917e5afa4db4be89288 to your computer and use it in GitHub Desktop.
Retour Json du Service MonEcole Eleve
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Presentation d'un utilisateur partout dans les reponses | |
{ | |
"matricule": "PEPEPE", | |
"nom" : "Bagui", | |
"prenom":"Ange", | |
"photo":"http://example/image.png", | |
"classe" : "5eme3", | |
"etablissement":"Lycée Moderne de Cocody Angré" | |
} | |
////////////////////////////////////////////// | |
//Presentation d'un theme partout dans les reponses | |
{ | |
"id" : 1, | |
"name" : "Anglais", | |
"created" : 100000000 /*timestamp*/ | |
} | |
////////////////////////////////////////////// | |
//Presentation d'un group partout dans les reponses | |
{ | |
"id" : 1, | |
"name" : "JFR", | |
"photo":"http://example/image.png", | |
"members_count" : 12, | |
"admins" : [//ceci me permettra de savoir qui sont les administrateurs du groupe | |
{ | |
"matricule": "PEPEPE", | |
"nom" : "Bagui", | |
"prenom":"Ange", | |
"photo":"http://example/image.png", | |
"classe" : "5eme3", | |
"etablissement":"Lycée Moderne de Cocody Angré" | |
}, | |
{ | |
"matricule": "PEPEPE", | |
"nom" : "Bagui", | |
"prenom":"Ange", | |
"photo":"http://example/image.png", | |
"classe" : "5eme3", | |
"etablissement":"Lycée Moderne de Cocody Angré" | |
} | |
], | |
"created" : 100000000 /*timestamp*/ | |
} | |
////////////////////////////////////////////// | |
//Presentation d'une reponse partout dans les reponses | |
{ | |
"id" : 11, | |
"content" : "Lorem ...", | |
"user" : { | |
"matricule": "PEPEPE", | |
"nom" : "Bagui", | |
"prenom":"Ange", | |
"photo":"http://example/image.png", | |
"classe" : "5eme3", | |
"etablissement":"Lycée Moderne de Cocody Angré" | |
}, | |
"subjectId" : 2, //question sujet ID | |
"score" : -300, | |
"created" : 100000000 //timestamp | |
} | |
////////////////////////////////////////////// | |
//Presentation d'une question partout dans les reponses | |
{ | |
"id" : 11, | |
"title" : "Lorem ...", | |
"user" : { | |
"matricule": "PEPEPE", | |
"nom" : "Bagui", | |
"prenom":"Ange", | |
"photo":"http://example/image.png", | |
"classe" : "5eme3", | |
"etablissement":"Lycée Moderne de Cocody Angré" | |
}, | |
"answers_count" : 0, | |
"best_answer": null, //un objet reponse la meilleur reponse | |
"group" : null, //un objet groupe | |
"theme" : null, //un objet theme | |
"created": 10000000 //timestamp | |
} | |
////////////////////////////////////////////////////////// | |
// Presentation d'une commentaire partout dans les reponses | |
{ | |
"id" : 11, | |
"content" : "Lorem ...", | |
"user" : { | |
"matricule": "PEPEPE", | |
"nom" : "Bagui", | |
"prenom":"Ange", | |
"photo":"http://example/image.png", | |
"classe" : "5eme3", | |
"etablissement":"Lycée Moderne de Cocody Angré" | |
}, | |
"answerId" : 2, //reponse ID | |
"created" : 100000000 //timestamp | |
} | |
// Presentation d'un document partout dans les reponses | |
{ | |
"id" : 11, | |
"title" : "Lorem ...", | |
"description" : "Lorem ...", | |
"link" : "http://example/book.pdf", | |
"theme": null, // un objet theme | |
"user" : { | |
"matricule": "PEPEPE", | |
"nom" : "Bagui", | |
"prenom":"Ange", | |
"photo":"http://example/image.png", | |
"classe" : "5eme3", | |
"etablissement":"Lycée Moderne de Cocody Angré" | |
}, | |
"created" : 100000000 //timestamp | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Les commentaires ajoutées, s'est juste pour t'expliquer, donc tu ne devrais pas en tenir compte dans ton code.