API (prof) : GET /profs/{idProf} #20

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

Fonctionnalité a ajouter :
Récupérer le détail d'un professeur par son identifiant.
Accessible uniquement par un administrateur.

Route :
GET /profs/{idProf}

Paramètres path :

Paramètre Type Description
idProf string Identifiant du professeur

Exemples

GET /profs/1

{
  "id": "pmartin",
  "nom": "Martin",
  "prenom": "Pierre"
}

Réponse 404 :

{
  "error": "Ressource introuvable"
}

**Fonctionnalité a ajouter :** Récupérer le détail d'un professeur par son identifiant. Accessible uniquement par un administrateur. **Route :** `GET /profs/{idProf}` **Paramètres path :** | Paramètre | Type | Description | |-----------|---------|---------------------------| | idProf | string | Identifiant du professeur | **Exemples** `GET /profs/1` ```json { "id": "pmartin", "nom": "Martin", "prenom": "Pierre" } ``` **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:13 +00:00
djalim changed title from API : GET /profs/{idProf} to API (prof) : GET /profs/{idProf} 2026-03-31 11:57:09 +00:00
djalim moved this to Closed-Cancelled in Module Managment on 2026-04-22 12:54:53 +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#20