forked from ScoDoc/ScoDoc
ajout des routes jury
This commit is contained in:
parent
25b0648284
commit
79b5530813
@ -110,7 +110,7 @@ def liste_etudiants(dept: str, *args, sem_id): # XXX TODO A REVOIR
|
||||
return error_response(501, message="Not implemented")
|
||||
|
||||
|
||||
@bp.route("/departements/<string:dept>/semestres_actifs", methods=["GET"])
|
||||
@bp.route("/departements/<string:dept>/semestres_courant", methods=["GET"])
|
||||
@token_auth.login_required
|
||||
def liste_semestres_courant(dept: str):
|
||||
"""
|
||||
@ -126,6 +126,7 @@ def liste_semestres_courant(dept: str):
|
||||
|
||||
return jsonify(data)
|
||||
|
||||
|
||||
@bp.route(
|
||||
"/departements/<string:dept>/formations/<int:formation_id>/referentiel_competences",
|
||||
methods=["GET"],
|
||||
@ -191,6 +192,7 @@ def etudiants_courant():
|
||||
return jsonify(data)
|
||||
# return error_response(501, message="Not implemented")
|
||||
|
||||
|
||||
@bp.route("/etudiant/etudid/<int:etudid>", methods=["GET"])
|
||||
@bp.route("/etudiant/nip/<int:nip>", methods=["GET"])
|
||||
@bp.route("/etudiant/ine/<int:ine>", methods=["GET"])
|
||||
@ -210,6 +212,7 @@ def etudiant(etudid=None, nip=None, ine=None):
|
||||
|
||||
return jsonify(data)
|
||||
|
||||
|
||||
@bp.route("/etudiant/etudid/<int:etudid>/formsemestres")
|
||||
@bp.route("/etudiant/nip/<int:nip>/formsemestres")
|
||||
@bp.route("/etudiant/ine/<int:ine>/formsemestres")
|
||||
@ -303,6 +306,7 @@ def etudiant_groups(formsemestre_id: int, etudid=None, nip=None, ine=None):
|
||||
|
||||
return jsonify(data)
|
||||
|
||||
|
||||
##############################################" Formations ############################################################
|
||||
|
||||
|
||||
@ -490,7 +494,7 @@ def set_groups(
|
||||
return error_response(409, message="La requête ne peut être traitée en l’état actuel")
|
||||
|
||||
|
||||
################################################### Evaluations #######################################################
|
||||
############################################### Evaluations ###########################################################
|
||||
|
||||
|
||||
@bp.route("/evaluations/<int:moduleimpl_id>", methods=["GET"])
|
||||
@ -530,6 +534,47 @@ def evaluation_set_notes(eval_id: int, etudid: int, note: float):
|
||||
return error_response(501, message="Not implemented")
|
||||
|
||||
|
||||
#################################################### Jury #############################################################
|
||||
@bp.route("/jury/formsemestre/<int:formsemestre_id>/preparation_jury", methods=["GET"])
|
||||
def jury_preparation(formsemestre_id: int):
|
||||
"""
|
||||
Feuille de préparation du jury
|
||||
"""
|
||||
return error_response(501, message="Not implemented")
|
||||
|
||||
|
||||
@bp.route("/jury/formsemestre/<int:formsemestre_id>/decisions_jury", methods=["GET"])
|
||||
def jury_decisions(formsemestre_id: int):
|
||||
"""
|
||||
Retourne les décisions du jury suivant un formsemestre donné
|
||||
"""
|
||||
return error_response(501, message="Not implemented")
|
||||
|
||||
|
||||
@bp.route("/jury/set_decision/etudid?etudid=<int:etudid>&formsemestre_id=<int:formesemestre_id>&jury=<string"
|
||||
":decision_jury>&devenir=<string:devenir_jury>&assiduite=<bool>", methods=["POST"])
|
||||
@bp.route("/jury/set_decision/nip?etudid=<int:etudid>&formsemestre_id=<int:formesemestre_id>&jury=<string:decision_jury"
|
||||
">&devenir=<string:devenir_jury>&assiduite=<bool>", methods=["POST"])
|
||||
@bp.route("/jury/set_decision/ine?etudid=<int:etudid>&formsemestre_id=<int:formesemestre_id>&jury=<string:decision_jury"
|
||||
">&devenir=<string:devenir_jury>&assiduite=<bool>", methods=["POST"])
|
||||
def set_decision_jury(formsemestre_id: int, decision_jury: str, devenir_jury: str, assiduite: bool, etudid=None,
|
||||
nip=None, ine=None):
|
||||
"""
|
||||
Attribuer la décision du jury et le devenir à un etudiant
|
||||
"""
|
||||
return error_response(501, message="Not implemented")
|
||||
|
||||
|
||||
@bp.route("/jury/etudid/<int:etudid>/formsemestre/<int:formsemestre_id>/annule_decision", methods=["DELETE"])
|
||||
@bp.route("/jury/nip/<int:nip>/formsemestre/<int:formsemestre_id>/annule_decision", methods=["DELETE"])
|
||||
@bp.route("/jury/ine/<int:ine>/formsemestre/<int:formsemestre_id>/annule_decision", methods=["DELETE"])
|
||||
def annule_decision_jury(formsemestre_id: int, etudid=None, nip=None, ine=None):
|
||||
"""
|
||||
Supprime la déciosion du jury pour un étudiant donné
|
||||
"""
|
||||
return error_response(501, message="Not implemented")
|
||||
|
||||
|
||||
#################################################### Absences #########################################################
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user