naftiko: 1.0.0-alpha2 info: label: Unleash Frontend API — Frontend API description: 'Unleash Frontend API — Frontend API. 4 operations. Lead operation: Retrieve Enabled Feature Flags for the Provided Context.. Self-contained Naftiko capability covering one Unleash business surface.' tags: - Unleash - Frontend API created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UNLEASH_API_KEY: UNLEASH_API_KEY capability: consumes: - type: http namespace: frontend-frontend-api baseUri: https://app.unleash-instance.example.com description: Unleash Frontend API — Frontend API business capability. Self-contained, no shared references. resources: - name: api-frontend path: /api/frontend operations: - name: getfrontendfeatures method: GET description: Retrieve Enabled Feature Flags for the Provided Context. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getfrontendapifeatureswithpost method: POST description: Retrieve Enabled Feature Flags for the Provided Context, Using Post. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-frontend-client-metrics path: /api/frontend/client/metrics operations: - name: registerfrontendmetrics method: POST description: Register Client Usage Metrics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-frontend-client-register path: /api/frontend/client/register operations: - name: registerfrontendclient method: POST description: Register a Client SDK 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.UNLEASH_API_KEY}}' exposes: - type: rest namespace: frontend-frontend-api-rest port: 8080 description: REST adapter for Unleash Frontend API — Frontend API. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/frontend name: api-frontend description: REST surface for api-frontend. operations: - method: GET name: getfrontendfeatures description: Retrieve Enabled Feature Flags for the Provided Context. call: frontend-frontend-api.getfrontendfeatures outputParameters: - type: object mapping: $. - method: POST name: getfrontendapifeatureswithpost description: Retrieve Enabled Feature Flags for the Provided Context, Using Post. call: frontend-frontend-api.getfrontendapifeatureswithpost with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/frontend/client/metrics name: api-frontend-client-metrics description: REST surface for api-frontend-client-metrics. operations: - method: POST name: registerfrontendmetrics description: Register Client Usage Metrics call: frontend-frontend-api.registerfrontendmetrics with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/frontend/client/register name: api-frontend-client-register description: REST surface for api-frontend-client-register. operations: - method: POST name: registerfrontendclient description: Register a Client SDK call: frontend-frontend-api.registerfrontendclient with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: frontend-frontend-api-mcp port: 9090 transport: http description: MCP adapter for Unleash Frontend API — Frontend API. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: retrieve-enabled-feature-flags-provided description: Retrieve Enabled Feature Flags for the Provided Context. hints: readOnly: true destructive: false idempotent: true call: frontend-frontend-api.getfrontendfeatures outputParameters: - type: object mapping: $. - name: retrieve-enabled-feature-flags-provided-2 description: Retrieve Enabled Feature Flags for the Provided Context, Using Post. hints: readOnly: true destructive: false idempotent: false call: frontend-frontend-api.getfrontendapifeatureswithpost with: body: tools.body outputParameters: - type: object mapping: $. - name: register-client-usage-metrics description: Register Client Usage Metrics hints: readOnly: false destructive: false idempotent: false call: frontend-frontend-api.registerfrontendmetrics with: body: tools.body outputParameters: - type: object mapping: $. - name: register-client-sdk description: Register a Client SDK hints: readOnly: false destructive: false idempotent: false call: frontend-frontend-api.registerfrontendclient with: body: tools.body outputParameters: - type: object mapping: $.