story: revisi manajemen akun
Story/Task
SP3-68 - [BE] Redesign Manajemen Akun
Details
- Advanced filtering in GET
/akun
- Batch assign (add role to all selected accounts)
- Batch unassign (delete all role from selected accounts)
- API docs fix: PUT PATCH DELETE returns id
- Fix validations in create or update account (PUT
/akun
)
Important Checks
Ceklis kalo kalian mengubah/menambahkan:
-
Menambahkan env
baru -
Mengubah skema basis data
Endpoints
Method | Endpoint | Keterangan |
---|---|---|
GET | /akun | Added nama, email, roles filtering |
PATCH | /akun/roles/batch-add | Batch assign (add role to all selected accounts) |
PATCH | /akun/roles/batch-remove | Batch unassign (delete all role from selected accounts) |
PUT | /akun | Added nim validations based on role |
Proof
Method | Endpoint | Proof |
---|---|---|
GET | /akun | |
PATCH | /akun/roles/batch-add | |
PATCH | /akun/roles/batch-remove | |
PUT | /akun |
Dump
dump ke 2 db biar sinkron: revisi-manajemen-akun.sql