naftiko: 1.0.0-alpha2 info: label: APIGen API — Projects description: 'APIGen API — Projects. 5 operations. Lead operation: APIGen List Projects. Self-contained Naftiko capability covering one Apigen business surface.' tags: - Apigen - Projects created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: APIGEN_API_KEY: APIGEN_API_KEY capability: consumes: - type: http namespace: apigen-projects baseUri: https://api.apigen.com/v1 description: APIGen API — Projects business capability. Self-contained, no shared references. resources: - name: projects path: /projects operations: - name: listprojects method: GET description: APIGen List Projects outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createproject method: POST description: APIGen Create a Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: projects-projectId path: /projects/{projectId} operations: - name: getproject method: GET description: APIGen Get a Project outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateproject method: PUT description: APIGen Update a Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteproject method: DELETE description: APIGen Delete a Project outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.APIGEN_API_KEY}}' exposes: - type: rest namespace: apigen-projects-rest port: 8080 description: REST adapter for APIGen API — Projects. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projects name: projects description: REST surface for projects. operations: - method: GET name: listprojects description: APIGen List Projects call: apigen-projects.listprojects outputParameters: - type: object mapping: $. - method: POST name: createproject description: APIGen Create a Project call: apigen-projects.createproject with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{projectid} name: projects-projectid description: REST surface for projects-projectId. operations: - method: GET name: getproject description: APIGen Get a Project call: apigen-projects.getproject outputParameters: - type: object mapping: $. - method: PUT name: updateproject description: APIGen Update a Project call: apigen-projects.updateproject with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteproject description: APIGen Delete a Project call: apigen-projects.deleteproject outputParameters: - type: object mapping: $. - type: mcp namespace: apigen-projects-mcp port: 9090 transport: http description: MCP adapter for APIGen API — Projects. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: apigen-list-projects description: APIGen List Projects hints: readOnly: true destructive: false idempotent: true call: apigen-projects.listprojects outputParameters: - type: object mapping: $. - name: apigen-create-project description: APIGen Create a Project hints: readOnly: false destructive: false idempotent: false call: apigen-projects.createproject with: body: tools.body outputParameters: - type: object mapping: $. - name: apigen-get-project description: APIGen Get a Project hints: readOnly: true destructive: false idempotent: true call: apigen-projects.getproject outputParameters: - type: object mapping: $. - name: apigen-update-project description: APIGen Update a Project hints: readOnly: false destructive: false idempotent: true call: apigen-projects.updateproject with: body: tools.body outputParameters: - type: object mapping: $. - name: apigen-delete-project description: APIGen Delete a Project hints: readOnly: false destructive: true idempotent: true call: apigen-projects.deleteproject outputParameters: - type: object mapping: $.