API (administration) : POST /enseignements #29

Closed
opened 2026-03-31 11:35:53 +00:00 by djalim · 0 comments
Collaborator

Fonctionnalité à ajouter :
Créer un nouvel enseignement (association prof-module-promo).
Accessible uniquement par un administrateur.

Route :
POST /enseignements

Exemples

POST /enseignements

{
  "idProf": "jdupont",
  "idModule": "JIN702C",
  "idPromo": "4AFISE25/26"
}

Réponse 201 :

{
  "idProf": "jdupont",
  "idModule": "JIN702C",
  "idPromo": "4AFISE25/26"
}

Réponse 409 :

{
   "error" : "Cet enseignement existe déjà."
}
**Fonctionnalité à ajouter :** Créer un nouvel enseignement (association prof-module-promo). Accessible uniquement par un administrateur. **Route :** `POST /enseignements` **Exemples** `POST /enseignements` ```json { "idProf": "jdupont", "idModule": "JIN702C", "idPromo": "4AFISE25/26" } ``` **Réponse 201 :** ```json { "idProf": "jdupont", "idModule": "JIN702C", "idPromo": "4AFISE25/26" } ``` **Réponse 409 :** ```json { "error" : "Cet enseignement existe déjà." } ```
djalim changed title from API : POST /enseignements to API (prof) : POST /enseignements 2026-03-31 11:55:26 +00:00
djalim changed title from API (prof) : POST /enseignements to API (administration) : POST /enseignements 2026-04-07 06:37:27 +00:00
djalim added this to the Module Managment project 2026-04-21 16:30:43 +00:00
djalim moved this to 🗂️ Project Backlog in Module Managment on 2026-04-21 16:31:53 +00:00
anys moved this to 🟢 Low priority in Module Managment on 2026-04-22 12:40:57 +00:00
djalim moved this to ⚙️ in progress in Module Managment on 2026-04-22 12:44:00 +00:00
anys self-assigned this 2026-04-22 12:45:50 +00:00
anys started working 2026-04-22 12:45:52 +00:00
anys worked for 5 minutes 2026-04-22 12:50:52 +00:00
anys added reference feature/api-enseignements 2026-04-22 13:08:42 +00:00
djalim moved this to ✅ done in Module Managment on 2026-04-22 23:04:12 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Total Time Spent: 5 minutes
anys
5 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/PolyMPR#29