naftiko: 1.0.0-alpha2 info: label: GridGain REST module — roleAssignments description: 'GridGain REST module — roleAssignments. 6 operations. Lead operation: Assign roles to users. Self-contained Naftiko capability covering one Gridgain business surface.' tags: - Gridgain - roleAssignments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRIDGAIN_API_KEY: GRIDGAIN_API_KEY capability: consumes: - type: http namespace: gridgain-roleassignments baseUri: http://localhost:10300 description: GridGain REST module — roleAssignments business capability. Self-contained, no shared references. resources: - name: management-v1-rbac-ra path: /management/v1/rbac/ra operations: - name: assignroles method: POST description: Assign roles to users outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: revokeroles method: DELETE description: Revoke roles from users outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: management-v1-rbac-ra-roles path: /management/v1/rbac/ra/roles operations: - name: getroleviews method: GET description: Get roles with users and privileges outputRawFormat: json outputParameters: - name: result type: object value: $. - name: management-v1-rbac-ra-roles-username path: /management/v1/rbac/ra/roles/{username} operations: - name: getrolesbyuser method: GET description: Get user roles outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: username in: path type: string description: Username. required: true - name: management-v1-rbac-ra-users path: /management/v1/rbac/ra/users operations: - name: getuserswithroles method: GET description: Get users who have all specified roles outputRawFormat: json outputParameters: - name: result type: object value: $. - name: management-v1-rbac-ra-users-roleName path: /management/v1/rbac/ra/users/{roleName} operations: - name: getusersbyrole method: GET description: Get users who have role outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: roleName in: path type: string description: Role name. required: true authentication: type: bearer token: '{{env.GRIDGAIN_API_KEY}}' exposes: - type: rest namespace: gridgain-roleassignments-rest port: 8080 description: REST adapter for GridGain REST module — roleAssignments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/management/v1/rbac/ra name: management-v1-rbac-ra description: REST surface for management-v1-rbac-ra. operations: - method: POST name: assignroles description: Assign roles to users call: gridgain-roleassignments.assignroles with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: revokeroles description: Revoke roles from users call: gridgain-roleassignments.revokeroles with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/management/v1/rbac/ra/roles name: management-v1-rbac-ra-roles description: REST surface for management-v1-rbac-ra-roles. operations: - method: GET name: getroleviews description: Get roles with users and privileges call: gridgain-roleassignments.getroleviews outputParameters: - type: object mapping: $. - path: /v1/management/v1/rbac/ra/roles/{username} name: management-v1-rbac-ra-roles-username description: REST surface for management-v1-rbac-ra-roles-username. operations: - method: GET name: getrolesbyuser description: Get user roles call: gridgain-roleassignments.getrolesbyuser with: username: rest.username outputParameters: - type: object mapping: $. - path: /v1/management/v1/rbac/ra/users name: management-v1-rbac-ra-users description: REST surface for management-v1-rbac-ra-users. operations: - method: GET name: getuserswithroles description: Get users who have all specified roles call: gridgain-roleassignments.getuserswithroles outputParameters: - type: object mapping: $. - path: /v1/management/v1/rbac/ra/users/{rolename} name: management-v1-rbac-ra-users-rolename description: REST surface for management-v1-rbac-ra-users-roleName. operations: - method: GET name: getusersbyrole description: Get users who have role call: gridgain-roleassignments.getusersbyrole with: roleName: rest.roleName outputParameters: - type: object mapping: $. - type: mcp namespace: gridgain-roleassignments-mcp port: 9090 transport: http description: MCP adapter for GridGain REST module — roleAssignments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: assign-roles-users description: Assign roles to users hints: readOnly: false destructive: false idempotent: false call: gridgain-roleassignments.assignroles with: body: tools.body outputParameters: - type: object mapping: $. - name: revoke-roles-users description: Revoke roles from users hints: readOnly: false destructive: true idempotent: true call: gridgain-roleassignments.revokeroles with: body: tools.body outputParameters: - type: object mapping: $. - name: get-roles-users-and-privileges description: Get roles with users and privileges hints: readOnly: true destructive: false idempotent: true call: gridgain-roleassignments.getroleviews outputParameters: - type: object mapping: $. - name: get-user-roles description: Get user roles hints: readOnly: true destructive: false idempotent: true call: gridgain-roleassignments.getrolesbyuser with: username: tools.username outputParameters: - type: object mapping: $. - name: get-users-who-have-all description: Get users who have all specified roles hints: readOnly: true destructive: false idempotent: true call: gridgain-roleassignments.getuserswithroles outputParameters: - type: object mapping: $. - name: get-users-who-have-role description: Get users who have role hints: readOnly: true destructive: false idempotent: true call: gridgain-roleassignments.getusersbyrole with: roleName: tools.roleName outputParameters: - type: object mapping: $.