naftiko: 1.0.0-alpha2 info: label: Rainbow Application Portal API — Authentication description: 'Rainbow Application Portal API — Authentication. 1 operations. Lead operation: Get OAuth Token. Self-contained Naftiko capability covering one Rainbow business surface.' tags: - Rainbow - Authentication created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RAINBOW_API_KEY: RAINBOW_API_KEY capability: consumes: - type: http namespace: application-authentication baseUri: https://openrainbow.com/api/rainbow description: Rainbow Application Portal API — Authentication business capability. Self-contained, no shared references. resources: - name: oauth-token path: /oauth/token operations: - name: getoauthtoken method: POST description: Get OAuth Token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.RAINBOW_API_KEY}}' exposes: - type: rest namespace: application-authentication-rest port: 8080 description: REST adapter for Rainbow Application Portal API — Authentication. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/oauth/token name: oauth-token description: REST surface for oauth-token. operations: - method: POST name: getoauthtoken description: Get OAuth Token call: application-authentication.getoauthtoken with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: application-authentication-mcp port: 9090 transport: http description: MCP adapter for Rainbow Application Portal API — Authentication. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-oauth-token description: Get OAuth Token hints: readOnly: true destructive: false idempotent: false call: application-authentication.getoauthtoken with: body: tools.body outputParameters: - type: object mapping: $.