# Admin Endpoints
# Admin Crud
All Admin from database
GET /admin/all
1
Get Loggedin Admin
GET /admin/me
1
Create New Admin
POST /admin/register
PAYLOAD name, email, password, password_confirmation, role_ids, permission_ids
1
2
2
Here
permission_ids
is for direct permissions and is optional.
Update Admin Details
PATCH /admin/{admin_id}
PAYLOAD name, email, role_ids, permission_ids
1
2
2
Here
permission_ids
is for direct permissions and is optional.
Delete Admin Details
DELETE /admin/{admin_id}
1
# Activations
Make Admin Active
POST /admin/activation/{admin_id}
1
Make Admin InActive
DELETE /admin/activation/{admin_id}
1
# Password Update
Delete Admin Details
PATCH /admin/{admin_id}
PAYLOAD oldPassword, password, password_confirmation
1
2
2