From 64f9de95a5098be33a542c0498dea9bf2fd40fcf Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 18 Aug 2022 15:53:26 +0200 Subject: [PATCH] API: missing routes /etudiant/ine//formsemestre//bulletin/pdf et .../nip/... --- app/api/etudiants.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/api/etudiants.py b/app/api/etudiants.py index 81e3cd32..2f81b0a2 100644 --- a/app/api/etudiants.py +++ b/app/api/etudiants.py @@ -218,7 +218,6 @@ def etudiant_formsemestres(etudid: int = None, nip: int = None, ine: int = None) methods=["GET"], defaults={"version": "long", "pdf": False}, ) -# Version PDF non testée @bp.route( "/etudiant/etudid//formsemestre//bulletin/pdf", methods=["GET"], @@ -254,6 +253,16 @@ def etudiant_formsemestres(etudid: int = None, nip: int = None, ine: int = None) methods=["GET"], defaults={"version": "short", "pdf": True}, ) +@bp.route( + "/etudiant/nip//formsemestre//bulletin/pdf", + methods=["GET"], + defaults={"version": "long", "pdf": True}, +) +@bp.route( + "/etudiant/ine//formsemestre//bulletin/pdf", + methods=["GET"], + defaults={"version": "long", "pdf": True}, +) @api_web_bp.route( "/etudiant/etudid//formsemestre//bulletin", methods=["GET"], @@ -269,7 +278,6 @@ def etudiant_formsemestres(etudid: int = None, nip: int = None, ine: int = None) methods=["GET"], defaults={"version": "long", "pdf": False}, ) -# Version PDF non testée @api_web_bp.route( "/etudiant/etudid//formsemestre//bulletin/pdf", methods=["GET"],