naftiko: 1.0.0-alpha2 info: label: GridGain REST module — roleManagement description: 'GridGain REST module — roleManagement. 4 operations. Lead operation: Get the list of roles. Self-contained Naftiko capability covering one Gridgain business surface.' tags: - Gridgain - roleManagement created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRIDGAIN_API_KEY: GRIDGAIN_API_KEY capability: consumes: - type: http namespace: gridgain-rolemanagement baseUri: http://localhost:10300 description: GridGain REST module — roleManagement business capability. Self-contained, no shared references. resources: - name: management-v1-rbac-roles path: /management/v1/rbac/roles operations: - name: getroles method: GET description: Get the list of roles outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createrole method: POST description: Create role 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-roles-roleName path: /management/v1/rbac/roles/{roleName} operations: - name: getrole method: GET description: Get role by name outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: roleName in: path type: string description: Role name. required: true - name: deleterole method: DELETE description: Delete role by name outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: roleName in: path type: string description: Role name. required: true - name: revoke in: query type: boolean required: true authentication: type: bearer token: '{{env.GRIDGAIN_API_KEY}}' exposes: - type: rest namespace: gridgain-rolemanagement-rest port: 8080 description: REST adapter for GridGain REST module — roleManagement. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/management/v1/rbac/roles name: management-v1-rbac-roles description: REST surface for management-v1-rbac-roles. operations: - method: GET name: getroles description: Get the list of roles call: gridgain-rolemanagement.getroles outputParameters: - type: object mapping: $. - method: POST name: createrole description: Create role call: gridgain-rolemanagement.createrole with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/management/v1/rbac/roles/{rolename} name: management-v1-rbac-roles-rolename description: REST surface for management-v1-rbac-roles-roleName. operations: - method: GET name: getrole description: Get role by name call: gridgain-rolemanagement.getrole with: roleName: rest.roleName outputParameters: - type: object mapping: $. - method: DELETE name: deleterole description: Delete role by name call: gridgain-rolemanagement.deleterole with: roleName: rest.roleName revoke: rest.revoke outputParameters: - type: object mapping: $. - type: mcp namespace: gridgain-rolemanagement-mcp port: 9090 transport: http description: MCP adapter for GridGain REST module — roleManagement. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-list-roles description: Get the list of roles hints: readOnly: true destructive: false idempotent: true call: gridgain-rolemanagement.getroles outputParameters: - type: object mapping: $. - name: create-role description: Create role hints: readOnly: false destructive: false idempotent: false call: gridgain-rolemanagement.createrole with: body: tools.body outputParameters: - type: object mapping: $. - name: get-role-name description: Get role by name hints: readOnly: true destructive: false idempotent: true call: gridgain-rolemanagement.getrole with: roleName: tools.roleName outputParameters: - type: object mapping: $. - name: delete-role-name description: Delete role by name hints: readOnly: false destructive: true idempotent: true call: gridgain-rolemanagement.deleterole with: roleName: tools.roleName revoke: tools.revoke outputParameters: - type: object mapping: $.