naftiko: 1.0.0-alpha2 info: label: Optimizely Web Experimentation REST API — Events description: 'Optimizely Web Experimentation REST API — Events. 5 operations. Lead operation: List events. Self-contained Naftiko capability covering one Optimizely business surface.' tags: - Optimizely - Events created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPTIMIZELY_API_KEY: OPTIMIZELY_API_KEY capability: consumes: - type: http namespace: web-experimentation-events baseUri: https://api.optimizely.com/v2 description: Optimizely Web Experimentation REST API — Events business capability. Self-contained, no shared references. resources: - name: events path: /events operations: - name: listevents method: GET description: List events outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createevent method: POST description: Create an event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: events-event_id path: /events/{event_id} operations: - name: getevent method: GET description: Get an event outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateevent method: PATCH description: Update an event outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteevent method: DELETE description: Delete an event outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.OPTIMIZELY_API_KEY}}' exposes: - type: rest namespace: web-experimentation-events-rest port: 8080 description: REST adapter for Optimizely Web Experimentation REST API — Events. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/events name: events description: REST surface for events. operations: - method: GET name: listevents description: List events call: web-experimentation-events.listevents outputParameters: - type: object mapping: $. - method: POST name: createevent description: Create an event call: web-experimentation-events.createevent with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/events/{event-id} name: events-event-id description: REST surface for events-event_id. operations: - method: GET name: getevent description: Get an event call: web-experimentation-events.getevent outputParameters: - type: object mapping: $. - method: PATCH name: updateevent description: Update an event call: web-experimentation-events.updateevent with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteevent description: Delete an event call: web-experimentation-events.deleteevent outputParameters: - type: object mapping: $. - type: mcp namespace: web-experimentation-events-mcp port: 9090 transport: http description: MCP adapter for Optimizely Web Experimentation REST API — Events. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-events description: List events hints: readOnly: true destructive: false idempotent: true call: web-experimentation-events.listevents outputParameters: - type: object mapping: $. - name: create-event description: Create an event hints: readOnly: false destructive: false idempotent: false call: web-experimentation-events.createevent with: body: tools.body outputParameters: - type: object mapping: $. - name: get-event description: Get an event hints: readOnly: true destructive: false idempotent: true call: web-experimentation-events.getevent outputParameters: - type: object mapping: $. - name: update-event description: Update an event hints: readOnly: false destructive: false idempotent: true call: web-experimentation-events.updateevent with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-event description: Delete an event hints: readOnly: false destructive: true idempotent: true call: web-experimentation-events.deleteevent outputParameters: - type: object mapping: $.