naftiko: 1.0.0-alpha2 info: label: APIGen API — Deployments description: 'APIGen API — Deployments. 4 operations. Lead operation: APIGen List Deployments. Self-contained Naftiko capability covering one Apigen business surface.' tags: - Apigen - Deployments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: APIGEN_API_KEY: APIGEN_API_KEY capability: consumes: - type: http namespace: apigen-deployments baseUri: https://api.apigen.com/v1 description: APIGen API — Deployments business capability. Self-contained, no shared references. resources: - name: projects-projectId-apis-apiId-deployments path: /projects/{projectId}/apis/{apiId}/deployments operations: - name: listdeployments method: GET description: APIGen List Deployments outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createdeployment method: POST description: APIGen Create a Deployment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: projects-projectId-apis-apiId-deployments-deploymentId path: /projects/{projectId}/apis/{apiId}/deployments/{deploymentId} operations: - name: getdeployment method: GET description: APIGen Get a Deployment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deletedeployment method: DELETE description: APIGen Tear Down a Deployment outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.APIGEN_API_KEY}}' exposes: - type: rest namespace: apigen-deployments-rest port: 8080 description: REST adapter for APIGen API — Deployments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projects/{projectid}/apis/{apiid}/deployments name: projects-projectid-apis-apiid-deployments description: REST surface for projects-projectId-apis-apiId-deployments. operations: - method: GET name: listdeployments description: APIGen List Deployments call: apigen-deployments.listdeployments outputParameters: - type: object mapping: $. - method: POST name: createdeployment description: APIGen Create a Deployment call: apigen-deployments.createdeployment with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{projectid}/apis/{apiid}/deployments/{deploymentid} name: projects-projectid-apis-apiid-deployments-deploymentid description: REST surface for projects-projectId-apis-apiId-deployments-deploymentId. operations: - method: GET name: getdeployment description: APIGen Get a Deployment call: apigen-deployments.getdeployment outputParameters: - type: object mapping: $. - method: DELETE name: deletedeployment description: APIGen Tear Down a Deployment call: apigen-deployments.deletedeployment outputParameters: - type: object mapping: $. - type: mcp namespace: apigen-deployments-mcp port: 9090 transport: http description: MCP adapter for APIGen API — Deployments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: apigen-list-deployments description: APIGen List Deployments hints: readOnly: true destructive: false idempotent: true call: apigen-deployments.listdeployments outputParameters: - type: object mapping: $. - name: apigen-create-deployment description: APIGen Create a Deployment hints: readOnly: false destructive: false idempotent: false call: apigen-deployments.createdeployment with: body: tools.body outputParameters: - type: object mapping: $. - name: apigen-get-deployment description: APIGen Get a Deployment hints: readOnly: true destructive: false idempotent: true call: apigen-deployments.getdeployment outputParameters: - type: object mapping: $. - name: apigen-tear-down-deployment description: APIGen Tear Down a Deployment hints: readOnly: false destructive: true idempotent: true call: apigen-deployments.deletedeployment outputParameters: - type: object mapping: $.