API (administration) : POST /roles #66

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

Fonctionnalité a ajouter :
Créer un nouveau rôle.
Accessible uniquement par un administrateur.

Route :
POST /roles

Exemples

POST /roles

{
  "nom": "Viewer"
}

Réponse 201 :

{
  "id": 4,
  "nom": "Viewer",
  "permissions": []
}
**Fonctionnalité a ajouter :** Créer un nouveau rôle. Accessible uniquement par un administrateur. **Route :** `POST /roles` **Exemples** `POST /roles` ```json { "nom": "Viewer" } ``` **Réponse 201 :** ```json { "id": 4, "nom": "Viewer", "permissions": [] } ```
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:50 +00:00
djalim moved this to ⚙️ in progress in Module Managment on 2026-04-22 11:39:31 +00:00
djalim moved this to ✅ done in Module Managment on 2026-04-22 11:48:23 +00:00
djalim self-assigned this 2026-04-22 12:56:56 +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#66