naftiko: 1.0.0-alpha2 info: label: Optimizely Commerce Service API — Catalog Entries description: 'Optimizely Commerce Service API — Catalog Entries. 4 operations. Lead operation: Get a catalog entry. Self-contained Naftiko capability covering one Optimizely business surface.' tags: - Optimizely - Catalog Entries created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPTIMIZELY_API_KEY: OPTIMIZELY_API_KEY capability: consumes: - type: http namespace: commerce-service-catalog-entries baseUri: '' description: Optimizely Commerce Service API — Catalog Entries business capability. Self-contained, no shared references. resources: - name: commerce-entries-entryCode path: /commerce/entries/{entryCode} operations: - name: getcatalogentry method: GET description: Get a catalog entry outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatecatalogentry method: PUT description: Update a catalog entry outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletecatalogentry method: DELETE description: Delete a catalog entry outputRawFormat: json outputParameters: - name: result type: object value: $. - name: commerce-entries-entryCode-commondraft-language path: /commerce/entries/{entryCode}/commondraft/{language} operations: - name: updatecatalogentrydraft method: PUT description: Update catalog entry common draft 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.OPTIMIZELY_API_KEY}}' exposes: - type: rest namespace: commerce-service-catalog-entries-rest port: 8080 description: REST adapter for Optimizely Commerce Service API — Catalog Entries. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/commerce/entries/{entrycode} name: commerce-entries-entrycode description: REST surface for commerce-entries-entryCode. operations: - method: GET name: getcatalogentry description: Get a catalog entry call: commerce-service-catalog-entries.getcatalogentry outputParameters: - type: object mapping: $. - method: PUT name: updatecatalogentry description: Update a catalog entry call: commerce-service-catalog-entries.updatecatalogentry with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecatalogentry description: Delete a catalog entry call: commerce-service-catalog-entries.deletecatalogentry outputParameters: - type: object mapping: $. - path: /v1/commerce/entries/{entrycode}/commondraft/{language} name: commerce-entries-entrycode-commondraft-language description: REST surface for commerce-entries-entryCode-commondraft-language. operations: - method: PUT name: updatecatalogentrydraft description: Update catalog entry common draft call: commerce-service-catalog-entries.updatecatalogentrydraft with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: commerce-service-catalog-entries-mcp port: 9090 transport: http description: MCP adapter for Optimizely Commerce Service API — Catalog Entries. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-catalog-entry description: Get a catalog entry hints: readOnly: true destructive: false idempotent: true call: commerce-service-catalog-entries.getcatalogentry outputParameters: - type: object mapping: $. - name: update-catalog-entry description: Update a catalog entry hints: readOnly: false destructive: false idempotent: true call: commerce-service-catalog-entries.updatecatalogentry with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-catalog-entry description: Delete a catalog entry hints: readOnly: false destructive: true idempotent: true call: commerce-service-catalog-entries.deletecatalogentry outputParameters: - type: object mapping: $. - name: update-catalog-entry-common-draft description: Update catalog entry common draft hints: readOnly: false destructive: false idempotent: true call: commerce-service-catalog-entries.updatecatalogentrydraft with: body: tools.body outputParameters: - type: object mapping: $.