Skip to content

story: revisi manajemen akun

Chiquita Ahsanunnisa requested to merge story/revisi-manajemen-akun into development

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 Screenshot_2024-04-15_215706
PATCH /akun/roles/batch-add Screenshot_2024-04-15_222039
PATCH /akun/roles/batch-remove Screenshot_2024-04-15_222053
PUT /akun Screenshot_2024-04-15_223351

Dump

dump ke 2 db biar sinkron: revisi-manajemen-akun.sql

Merge request reports