feat: Implement get role mappings API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-14 15:46:08 +01:00
parent 29341f81e1
commit 64049bd546
7 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
const getRoleMappingsMock = async (roleMappings) => {
const data = roleMappings.map((roleMapping) => {
return {
id: roleMapping.id,
samlAuthProviderId: roleMapping.samlAuthProviderId,
roleId: roleMapping.roleId,
remoteRoleName: roleMapping.remoteRoleName,
};
});
return {
data: data,
meta: {
count: data.length,
currentPage: null,
isArray: true,
totalPages: null,
type: 'SamlAuthProvidersRoleMapping',
},
};
};
export default getRoleMappingsMock;