feature/api-admin-policies #78

Merged
KZix merged 23 commits from feature/api-admin-policies into develop 2025-12-29 17:11:15 +00:00
Owner

Added --> /admin/users endpoint

  • Admin-only endpoint (authorization check)
  • Accept same fields as registration (email, name, nickname, password)
  • Create admin account directly
  • Return 401 if not admin
  • Return 400 on validation error
  • Return 409 if email exists
  • Return success with created account details
  • Implement soft deletion
  • Return 401 if not admin
  • Return 403 if admin attempts to delete self
  • Return 404 if user not found
  • Preserve transaction history
  • Toggle user block status
  • Return 401 if not admin
  • Return 404 if user not found
  • Return success with updated user status
  • Blocked users cannot login or play
**Added** --> /admin/users endpoint - [x] Admin-only endpoint (authorization check) - [x] Accept same fields as registration (email, name, nickname, password) - [x] Create admin account directly - [x] Return 401 if not admin - [x] Return 400 on validation error - [x] Return 409 if email exists - [x] Return success with created account details - [x] Implement soft deletion - [x] Return 401 if not admin - [x] Return 403 if admin attempts to delete self - [x] Return 404 if user not found - [x] Preserve transaction history - [x] Toggle user block status - [x] Return 401 if not admin - [x] Return 404 if user not found - [x] Return success with updated user status - [x] Blocked users cannot login or play
FernandoJVideira added 21 commits 2025-12-29 11:30:11 +00:00
AfonsoCMSousa approved these changes 2025-12-29 12:01:26 +00:00
Dismissed
KZix approved these changes 2025-12-29 14:34:05 +00:00
Dismissed
FernandoJVideira added 2 commits 2025-12-29 14:54:59 +00:00
FernandoJVideira dismissed AfonsoCMSousa's review 2025-12-29 14:54:59 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

FernandoJVideira dismissed KZix's review 2025-12-29 14:54:59 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Edd approved these changes 2025-12-29 16:21:04 +00:00
KZix approved these changes 2025-12-29 17:10:29 +00:00
KZix merged commit 83f92e670d into develop 2025-12-29 17:11:15 +00:00
KZix deleted branch feature/api-admin-policies 2025-12-29 17:11:15 +00:00
Sign in to join this conversation.