naftiko: 1.0.0-alpha2 info: label: Optimizely Web Experimentation REST API — Pages description: 'Optimizely Web Experimentation REST API — Pages. 5 operations. Lead operation: List pages. Self-contained Naftiko capability covering one Optimizely business surface.' tags: - Optimizely - Pages 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-pages baseUri: https://api.optimizely.com/v2 description: Optimizely Web Experimentation REST API — Pages business capability. Self-contained, no shared references. resources: - name: pages path: /pages operations: - name: listpages method: GET description: List pages outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createpage method: POST description: Create a page outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: pages-page_id path: /pages/{page_id} operations: - name: getpage method: GET description: Get a page outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatepage method: PATCH description: Update a page outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletepage method: DELETE description: Delete a page outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.OPTIMIZELY_API_KEY}}' exposes: - type: rest namespace: web-experimentation-pages-rest port: 8080 description: REST adapter for Optimizely Web Experimentation REST API — Pages. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/pages name: pages description: REST surface for pages. operations: - method: GET name: listpages description: List pages call: web-experimentation-pages.listpages outputParameters: - type: object mapping: $. - method: POST name: createpage description: Create a page call: web-experimentation-pages.createpage with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/pages/{page-id} name: pages-page-id description: REST surface for pages-page_id. operations: - method: GET name: getpage description: Get a page call: web-experimentation-pages.getpage outputParameters: - type: object mapping: $. - method: PATCH name: updatepage description: Update a page call: web-experimentation-pages.updatepage with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletepage description: Delete a page call: web-experimentation-pages.deletepage outputParameters: - type: object mapping: $. - type: mcp namespace: web-experimentation-pages-mcp port: 9090 transport: http description: MCP adapter for Optimizely Web Experimentation REST API — Pages. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-pages description: List pages hints: readOnly: true destructive: false idempotent: true call: web-experimentation-pages.listpages outputParameters: - type: object mapping: $. - name: create-page description: Create a page hints: readOnly: false destructive: false idempotent: false call: web-experimentation-pages.createpage with: body: tools.body outputParameters: - type: object mapping: $. - name: get-page description: Get a page hints: readOnly: true destructive: false idempotent: true call: web-experimentation-pages.getpage outputParameters: - type: object mapping: $. - name: update-page description: Update a page hints: readOnly: false destructive: false idempotent: true call: web-experimentation-pages.updatepage with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-page description: Delete a page hints: readOnly: false destructive: true idempotent: true call: web-experimentation-pages.deletepage outputParameters: - type: object mapping: $.