API (administration) : GET /users/{id} #62

Closed
opened 2026-04-21 16:25:57 +00:00 by djalim · 0 comments
Collaborator

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

Route :
GET /users/{id}

Paramètres path :

Paramètre Type Description
id string Identifiant de l'utilisateur (login)

Exemples

GET /users/s.ayache

{
  "id": "s.ayache",
  "nom": "Ayache",
  "prenom": "Sofiane",
  "idRole": 1
}

Réponse 404 :

{
  "error": "Ressource introuvable"
}
**Fonctionnalité a ajouter :** Récupérer le détail d'un utilisateur par son identifiant. Accessible uniquement par un administrateur. **Route :** `GET /users/{id}` **Paramètres path :** | Paramètre | Type | Description | |-----------|--------|----------------------------| | id | string | Identifiant de l'utilisateur (login) | **Exemples** `GET /users/s.ayache` ```json { "id": "s.ayache", "nom": "Ayache", "prenom": "Sofiane", "idRole": 1 } ``` **Réponse 404 :** ```json { "error": "Ressource introuvable" } ```
djalim added this to the Module Managment project 2026-04-21 16:30:35 +00:00
djalim moved this to 🗂️ Project Backlog in Module Managment on 2026-04-21 16:31:46 +00:00
djalim moved this to ⚙️ in progress in Module Managment on 2026-04-22 11:39:00 +00:00
djalim moved this to ✅ done in Module Managment on 2026-04-22 11:48:19 +00:00
djalim self-assigned this 2026-04-22 12:56:55 +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#62