naftiko: 1.0.0-alpha2 info: label: Ternary API — Cost Allocation description: 'Ternary API — Cost Allocation. 5 operations. Lead operation: List Cost Allocations. Self-contained Naftiko capability covering one Ternary business surface.' tags: - Ternary - Cost Allocation created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TERNARY_API_KEY: TERNARY_API_KEY capability: consumes: - type: http namespace: ternary-cost-allocation baseUri: https://api.ternary.app description: Ternary API — Cost Allocation business capability. Self-contained, no shared references. resources: - name: v1-cost-allocations path: /v1/cost-allocations operations: - name: listcostallocations method: GET description: List Cost Allocations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: page_token in: query type: string description: Token for paginating through results - name: page_size in: query type: integer description: Number of results per page - name: createcostallocation method: POST description: Create Cost Allocation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-cost-allocations-allocation_id path: /v1/cost-allocations/{allocation_id} operations: - name: getcostallocation method: GET description: Get Cost Allocation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: allocation_id in: path type: string description: The unique identifier of the cost allocation rule required: true - name: updatecostallocation method: PUT description: Update Cost Allocation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: allocation_id in: path type: string description: The unique identifier of the cost allocation rule required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletecostallocation method: DELETE description: Delete Cost Allocation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: allocation_id in: path type: string description: The unique identifier of the cost allocation rule required: true authentication: type: apikey key: X-API-Key value: '{{env.TERNARY_API_KEY}}' placement: header exposes: - type: rest namespace: ternary-cost-allocation-rest port: 8080 description: REST adapter for Ternary API — Cost Allocation. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/cost-allocations name: v1-cost-allocations description: REST surface for v1-cost-allocations. operations: - method: GET name: listcostallocations description: List Cost Allocations call: ternary-cost-allocation.listcostallocations with: page_token: rest.page_token page_size: rest.page_size outputParameters: - type: object mapping: $. - method: POST name: createcostallocation description: Create Cost Allocation call: ternary-cost-allocation.createcostallocation with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/cost-allocations/{allocation-id} name: v1-cost-allocations-allocation-id description: REST surface for v1-cost-allocations-allocation_id. operations: - method: GET name: getcostallocation description: Get Cost Allocation call: ternary-cost-allocation.getcostallocation with: allocation_id: rest.allocation_id outputParameters: - type: object mapping: $. - method: PUT name: updatecostallocation description: Update Cost Allocation call: ternary-cost-allocation.updatecostallocation with: allocation_id: rest.allocation_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecostallocation description: Delete Cost Allocation call: ternary-cost-allocation.deletecostallocation with: allocation_id: rest.allocation_id outputParameters: - type: object mapping: $. - type: mcp namespace: ternary-cost-allocation-mcp port: 9090 transport: http description: MCP adapter for Ternary API — Cost Allocation. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-cost-allocations description: List Cost Allocations hints: readOnly: true destructive: false idempotent: true call: ternary-cost-allocation.listcostallocations with: page_token: tools.page_token page_size: tools.page_size outputParameters: - type: object mapping: $. - name: create-cost-allocation description: Create Cost Allocation hints: readOnly: false destructive: false idempotent: false call: ternary-cost-allocation.createcostallocation with: body: tools.body outputParameters: - type: object mapping: $. - name: get-cost-allocation description: Get Cost Allocation hints: readOnly: true destructive: false idempotent: true call: ternary-cost-allocation.getcostallocation with: allocation_id: tools.allocation_id outputParameters: - type: object mapping: $. - name: update-cost-allocation description: Update Cost Allocation hints: readOnly: false destructive: false idempotent: true call: ternary-cost-allocation.updatecostallocation with: allocation_id: tools.allocation_id body: tools.body outputParameters: - type: object mapping: $. - name: delete-cost-allocation description: Delete Cost Allocation hints: readOnly: false destructive: true idempotent: true call: ternary-cost-allocation.deletecostallocation with: allocation_id: tools.allocation_id outputParameters: - type: object mapping: $.