|
|
|
@ -41,4 +41,138 @@ export class ScientifiqueIndices extends PagedDataObject{
|
|
|
|
|
const response = await fetch(`${REST_API}/scientifiques/${idScientifique}/indices`)
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
} ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|