ajouter le JSON de reference de chaque objet

front
Gwenael PLANCHON 1 year ago
parent 91cdbb3031
commit 22447ce309

@ -42,3 +42,137 @@ export class ScientifiqueIndices extends PagedDataObject{
return new this(await response.json()) return new this(await response.json())
} }
} }
/* JSON de reference (Scientifique)
{
"id" : 1,
"difficulte" : {
"id" : 1,
"libelle" : "Facile"
},
"thematique" : {
"id" : 1,
"libelle" : "Nucléaire"
},
"pathToPhoto" : "",
"nom" : "Marie",
"prenom" : "Curie",
"descriptif" : "desc",
"dateNaissance" : "2024-03-01T00:00:00.000+00:00",
"sexe" : "F",
"ratioTrouve" : 0.5,
"_links" : {
"indices" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques/1/indices"
},
"self" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques/1"
}
}
}
*/
/* JSON de reference (Scientifiques / Page de scientifiques)
{
"_links" : {
"first" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques?page=0&size=2"
},
"self" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques?page=0&size=2"
},
"next" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques?page=1&size=2"
},
"last" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques?page=1&size=2"
}
},
"page" : {
"size" : 2,
"totalElements" : 3,
"totalPages" : 2,
"number" : 0
},
"_embedded" : [ {
"id" : 1,
"difficulte" : {
"id" : 1,
"libelle" : "Facile"
},
"thematique" : {
"id" : 1,
"libelle" : "Nucléaire"
},
"pathToPhoto" : "",
"nom" : "Marie",
"prenom" : "Curie",
"descriptif" : "desc",
"dateNaissance" : "2024-03-01T00:00:00.000+00:00",
"sexe" : "F",
"ratioTrouve" : 0.5,
"_links" : {
"indices" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques/1/indices"
},
"self" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques/1"
}
}
}, {
"id" : 2,
"difficulte" : {
"id" : 1,
"libelle" : "Facile"
},
"thematique" : {
"id" : 2,
"libelle" : "Mathématiques"
},
"pathToPhoto" : "",
"nom" : "Albert",
"prenom" : "Einstein",
"descriptif" : "desc",
"dateNaissance" : "2024-03-01T00:00:00.000+00:00",
"sexe" : "H",
"ratioTrouve" : 0.754,
"_links" : {
"indices" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques/2/indices"
},
"self" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques/2"
}
}
} ]
}
*/
/* JSON de reference (ScientifiqueIndices)
{
"_links" : {
"self" : {
"href" : "http://sae-java.alix-jdlm.fr/api/v1/scientifiques/1/indices"
}
},
"_embedded" : [ {
"id" : 1,
"libelle" : "Indice pour aider",
"scientifique" : {
"id" : 1
}
}, {
"id" : 2,
"libelle" : "S'appelle Marie",
"scientifique" : {
"id" : 1
}
} ]
}
*/

@ -22,3 +22,12 @@ export class Utilisateur extends DataObject{
return new this(await response.json()) return new this(await response.json())
} }
} }
//TODO : JSON de reference pour le get
/* JSON de reference (register)
{"email":"amogus@amog.us", "pseudo":"amogus", "motDePasse":"hunter2"}
*/
/* JSON de reference (login)
{"email":"amogus@amog.us", "motDePasse":"hunter2"}
*/
Loading…
Cancel
Save