naftiko: 1.0.0-alpha2 info: label: Swetrix Admin API — Projects description: 'Swetrix Admin API — Projects. 7 operations. Lead operation: List Projects. Self-contained Naftiko capability covering one Swetrix business surface.' tags: - Swetrix - Projects created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SWETRIX_API_KEY: SWETRIX_API_KEY capability: consumes: - type: http namespace: admin-projects baseUri: https://api.swetrix.com description: Swetrix Admin API — Projects business capability. Self-contained, no shared references. resources: - name: v1-project path: /v1/project operations: - name: listprojects method: GET description: List Projects outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createproject method: POST description: Create Project outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-project-id path: /v1/project/{id} operations: - name: getproject method: GET description: Get Project outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateproject method: PUT description: Update 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: Delete Project outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1-project-id-pin path: /v1/project/{id}/pin operations: - name: pinproject method: POST description: Pin Project outputRawFormat: json outputParameters: - name: result type: object value: $. - name: unpinproject method: DELETE description: Unpin Project outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: X-Api-Key value: '{{env.SWETRIX_API_KEY}}' placement: header exposes: - type: rest namespace: admin-projects-rest port: 8080 description: REST adapter for Swetrix Admin API — Projects. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/project name: v1-project description: REST surface for v1-project. operations: - method: GET name: listprojects description: List Projects call: admin-projects.listprojects outputParameters: - type: object mapping: $. - method: POST name: createproject description: Create Project call: admin-projects.createproject with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/project/{id} name: v1-project-id description: REST surface for v1-project-id. operations: - method: GET name: getproject description: Get Project call: admin-projects.getproject outputParameters: - type: object mapping: $. - method: PUT name: updateproject description: Update Project call: admin-projects.updateproject with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteproject description: Delete Project call: admin-projects.deleteproject outputParameters: - type: object mapping: $. - path: /v1/v1/project/{id}/pin name: v1-project-id-pin description: REST surface for v1-project-id-pin. operations: - method: POST name: pinproject description: Pin Project call: admin-projects.pinproject outputParameters: - type: object mapping: $. - method: DELETE name: unpinproject description: Unpin Project call: admin-projects.unpinproject outputParameters: - type: object mapping: $. - type: mcp namespace: admin-projects-mcp port: 9090 transport: http description: MCP adapter for Swetrix Admin API — Projects. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-projects description: List Projects hints: readOnly: true destructive: false idempotent: true call: admin-projects.listprojects outputParameters: - type: object mapping: $. - name: create-project description: Create Project hints: readOnly: false destructive: false idempotent: false call: admin-projects.createproject with: body: tools.body outputParameters: - type: object mapping: $. - name: get-project description: Get Project hints: readOnly: true destructive: false idempotent: true call: admin-projects.getproject outputParameters: - type: object mapping: $. - name: update-project description: Update Project hints: readOnly: false destructive: false idempotent: true call: admin-projects.updateproject with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-project description: Delete Project hints: readOnly: false destructive: true idempotent: true call: admin-projects.deleteproject outputParameters: - type: object mapping: $. - name: pin-project description: Pin Project hints: readOnly: false destructive: false idempotent: false call: admin-projects.pinproject outputParameters: - type: object mapping: $. - name: unpin-project description: Unpin Project hints: readOnly: false destructive: true idempotent: true call: admin-projects.unpinproject outputParameters: - type: object mapping: $.