Skip to content

Commit

Permalink
feat: generate jans-config-api client from multiple swagger specs #426
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Sep 12, 2022
1 parent bc2b602 commit cc02b16
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 135 deletions.
41 changes: 0 additions & 41 deletions admin-ui/plugins/admin/components/Mapping/MappingApi.js

This file was deleted.

42 changes: 0 additions & 42 deletions admin-ui/plugins/admin/components/Permissions/PermissionApi.js

This file was deleted.

42 changes: 0 additions & 42 deletions admin-ui/plugins/admin/components/Roles/RoleApi.js

This file was deleted.

4 changes: 1 addition & 3 deletions admin-ui/plugins/admin/redux/api/MappingApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ export default class MappingApi {
})
}
deleteMapping = (data) => {
const options = {}
options['rolePermissionMapping'] = data
return new Promise((resolve, reject) => {
this.api.removeRolePermissionsPermission(options, (error, options) => {
this.api.removeRolePermissionsPermission(data.role, (error, options) => {
handleResponse(error, reject, resolve, data)
})
})
Expand Down
6 changes: 2 additions & 4 deletions admin-ui/plugins/admin/redux/api/PermissionApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ export default class PermissionApi {
})
})
}
permission

deletePermission = async (data) => {
const options = {}
options['adminPermission'] = data
return new Promise((resolve, reject) => {
this.api.deleteAdminuiPermission(options, (error, data) => {
this.api.deleteAdminuiPermission(data.permission, (error, data) => {
handleResponse(error, reject, resolve, data)
})
})
Expand Down
4 changes: 1 addition & 3 deletions admin-ui/plugins/admin/redux/api/RoleApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ export default class RoleApi {
}

deleteRole = async (data) => {
const options = {}
options['adminRole'] = data
return new Promise((resolve, reject) => {
this.api.deleteAdminuiRole(options, (error, data) => {
this.api.deleteAdminuiRole(data.role, (error, data) => {
handleResponse(error, reject, resolve, data)
})
})
Expand Down

0 comments on commit cc02b16

Please sign in to comment.