forked from ScoDoc/DocScoDoc
72 lines
2.2 KiB
Python
72 lines
2.2 KiB
Python
|
# @bp.route("/etudiants", methods=["GET"])
|
||
|
# @token_permission_required(Permission.APIView)
|
||
|
# def etudiants():
|
||
|
# """
|
||
|
# Retourne la liste de tous les étudiants
|
||
|
#
|
||
|
# Exemple de résultat :
|
||
|
# {
|
||
|
# "civilite": "X",
|
||
|
# "code_ine": null,
|
||
|
# "code_nip": null,
|
||
|
# "date_naissance": null,
|
||
|
# "email": null,
|
||
|
# "emailperso": null,
|
||
|
# "etudid": 18,
|
||
|
# "nom": "MOREL",
|
||
|
# "prenom": "JACQUES"
|
||
|
# },
|
||
|
# {
|
||
|
# "civilite": "X",
|
||
|
# "code_ine": null,
|
||
|
# "code_nip": null,
|
||
|
# "date_naissance": null,
|
||
|
# "email": null,
|
||
|
# "emailperso": null,
|
||
|
# "etudid": 19,
|
||
|
# "nom": "FOURNIER",
|
||
|
# "prenom": "ANNE"
|
||
|
# },
|
||
|
# ...
|
||
|
# """
|
||
|
# # Récupération de tous les étudiants
|
||
|
# etu = models.Identite.query.all()
|
||
|
#
|
||
|
# # Mise en forme des données
|
||
|
# data = [d.to_dict_bul(include_urls=False) for d in etu]
|
||
|
#
|
||
|
# return jsonify(data)
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
# @bp.route(
|
||
|
# "/evaluations/eval_set_notes?eval_id=<int:eval_id>&etudid=<int:etudid>¬e=<float:note>",
|
||
|
# methods=["POST"],
|
||
|
# )
|
||
|
# @bp.route(
|
||
|
# "/evaluations/eval_set_notes?eval_id=<int:eval_id>&nip=<int:nip>¬e=<float:note>",
|
||
|
# methods=["POST"],
|
||
|
# )
|
||
|
# @bp.route(
|
||
|
# "/evaluations/eval_set_notes?eval_id=<int:eval_id>&ine=<int:ine>¬e=<float:note>",
|
||
|
# methods=["POST"],
|
||
|
# )
|
||
|
# @token_permission_required(Permission.APIEditAllNotes)
|
||
|
# def evaluation_set_notes(
|
||
|
# eval_id: int, note: float, etudid: int = None, nip: int = None, ine: int = None
|
||
|
# ):
|
||
|
# """
|
||
|
# Set les notes d'une évaluation pour un étudiant donnée
|
||
|
#
|
||
|
# eval_id : l'id d'une évaluation
|
||
|
# note : la note à attribuer
|
||
|
# etudid : l'etudid d'un étudiant
|
||
|
# nip : le code nip d'un étudiant
|
||
|
# ine : le code ine d'un étudiant
|
||
|
# """
|
||
|
# # Fonction utilisée : app.scodoc.sco_saisie_notes.notes_add()
|
||
|
#
|
||
|
# # Qu'est ce qu'un user ???
|
||
|
# # notes_add()
|
||
|
# return error_response(501, message="Not implemented")
|