Role
Base URL: http://192.168.100.250/
Endpoints
Section titled “Endpoints”| Method | Endpoint | Description |
|---|---|---|
| GET | /role |
List users (paginated) and roles |
| POST | /role |
Create new role |
| POST | /role/assign/{userId} |
Assign role to user |
GET /roleAccept: application/jsonQuery Parameters:
| Param | Description |
|---|---|
page |
Page number for pagination (e.g., ?page=2) |
Create Role
Section titled “Create Role”POST /roleContent-Type: application/jsonRequest Body:
{ "name": "superadmin", "description": "Has all permissions"}Assign Role to User
Section titled “Assign Role to User”POST /role/assign/{userId}Content-Type: application/jsonRequest Body:
{ "role_id": 3}