User and Permission
Fetches a list of all roles with optional pagination and filtering.
The number of results to return per page.
10
The number of records to skip before starting to return results.
0
Indicates whether to count the total number of records available.
false
Bearer token for authentication.
Successfully fetched the role list
GET /backend/api/role/rolelist HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
Successfully fetched the role list
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Successfully get all role list</message>
</object>
Creates a new role with a name and status.
Bearer token for authentication.
test
true
Successfully created a new role
Role already exists
POST /backend/api/role/create-role HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 29
"name='test'&status=true"
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Successfully created a new role</message>
</object>
Updates the role details (name and status) for a given roleId.
ID of the role to update
Bearer token for authentication.
testtttt
1
30
Role updated successfully
PUT /backend/api/role/update-role/{roleId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 38
"name='testtttt'&status=1&id=30"
Role updated successfully
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Role updated successfully</message>
</object>
Retrieves a list of permission modules with pagination and filtering options.
The number of permission modules to retrieve per request
The offset to retrieve the list from
Search keyword to filter the permission modules
Flag to include count in the response
Filter permission modules by status
Bearer token for authentication.
Successfully retrieved the list of permission modules
GET /backend/api/permission-module/list HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
Successfully retrieved the list of permission modules
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Successfully got the complete list of pages</message>
</object>
Retrieves a list of permissions for a specific reference type and ID.
The reference type (e.g., 1 for a specific object)
The reference ID to fetch permissions for
Bearer token for authentication.
Successfully retrieved the permission list
GET /backend/api/permission-module/get-permission HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
Successfully retrieved the permission list
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Successfully got permission list</message>
</object>
Adds a list of permissions for a specific reference type and ID.
Bearer token for authentication.
1
["list-order"]
30
Successfully updated the permissions
POST /backend/api/permission-module/add-permission HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 52
"refType=1&permission=['list-order']&refId=30"
Successfully updated the permissions
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Successfully updated the permission</message>
</object>
Deletes the role identified by the provided role ID.
ID of the role to delete
Bearer token for authentication.
Successfully deleted the role
DELETE /backend/api/role/delete-role/{roleId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
Successfully deleted the role
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Successfully deleted the role</message>
</object>
Retrieves a list of users based on the provided parameters like limit, offset, and status.
Limit of users per request
10
Offset to start fetching the list
0
Whether to count the total number of users
false
Filter users based on their status
Bearer token for authentication.
Successfully retrieved the user list
GET /backend/api/auth/userlist HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
Successfully retrieved the user list
<?xml version="1.0"?>
<object>
<status>1</status>
<message>Successfully got all user list</message>
</object>
Creates a new user in the system with the provided user details.
Bearer token for authentication.
The user's first name
The user's last name
The user's email address
The ID of the user's group
The user's username
The user's password
Successfully created the user
Bad Request - User already exists
POST /backend/api/auth/create-user HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 115
"firstName='text'&lastName='text'&email='[email protected]'&userGroupId=1&username='text'&password='text'"
<?xml version="1.0"?>
<object>
<status>1</status>
<message>User created successfully</message>
</object>
Updates an existing user in the system with the provided user details.
ID of the user to be updated
Bearer token for authentication.
The user's first name
The user's last name
The user's email address
The ID of the user's group
The user's username
The user's password (hashed)
The ID of the user being updated
Successfully updated the user
Bad Request - Invalid user data
PUT /backend/api/auth/update-user/{userId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 122
"firstName='text'&lastName='text'&email='[email protected]'&userGroupId=1&username='text'&password='text'&id=1"
<?xml version="1.0"?>
<object>
<status>1</status>
<message>User updated successfully</message>
</object>
Deletes an existing user by user ID.
ID of the user to be deleted
Bearer token for authentication.
Successfully deleted the user
Bad Request - Invalid user ID
DELETE /backend/api/auth/delete-user/{userId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
<status>1</status>
<message>User deleted successfully</message>
</object>
Last updated