API (prof) : PUT /profs/{idProf} #21

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

Fonctionnalité a ajouter :
Modifier les informations d'un professeur existant.
Accessible uniquement par un administrateur.

Route :
PUT /profs/{idProf}

Paramètres path :

Paramètre Type Description
idProf string Identifiant du professeur

Exemples

PUT /profs/mpaul

{
  "nom": "Martin",
  "prenom": "Paul"
}

Réponse 200 :

{
  "id": "mpaul",
  "nom": "Martin",
  "prenom": "Paul"
}

Réponse 404 :

{
  "error": "Ressource introuvable"
}

**Fonctionnalité a ajouter :** Modifier les informations d'un professeur existant. Accessible uniquement par un administrateur. **Route :** `PUT /profs/{idProf}` **Paramètres path :** | Paramètre | Type | Description | |-----------|---------|---------------------------| | idProf | string | Identifiant du professeur | **Exemples** `PUT /profs/mpaul` ```json { "nom": "Martin", "prenom": "Paul" } ``` **Réponse 200 :** ```json { "id": "mpaul", "nom": "Martin", "prenom": "Paul" } ``` **Réponse 404 :** ```json { "error": "Ressource introuvable" } ``` ---
djalim added this to the Module Managment project 2026-03-31 11:32:44 +00:00
djalim moved this to Project Backlog in Module Managment on 2026-03-31 11:33:15 +00:00
djalim changed title from API : PUT /profs/{idProf} to API (prof) : PUT /profs/{idProf} 2026-03-31 11:56:56 +00:00
djalim moved this to Closed-Cancelled in Module Managment on 2026-04-22 12:54:54 +00:00
djalim self-assigned this 2026-04-22 12:57:07 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/PolyMPR#21