naftiko: 1.0.0-alpha2 info: label: Medium REST API — Images description: 'Medium REST API — Images. 1 operations. Lead operation: Upload an image. Self-contained Naftiko capability covering one Medium business surface.' tags: - Medium - Images created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MEDIUM_API_KEY: MEDIUM_API_KEY capability: consumes: - type: http namespace: rest-images baseUri: https://api.medium.com/v1 description: Medium REST API — Images business capability. Self-contained, no shared references. resources: - name: images path: /images operations: - name: uploadimage method: POST description: Upload an image 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.MEDIUM_API_KEY}}' exposes: - type: rest namespace: rest-images-rest port: 8080 description: REST adapter for Medium REST API — Images. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/images name: images description: REST surface for images. operations: - method: POST name: uploadimage description: Upload an image call: rest-images.uploadimage with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: rest-images-mcp port: 9090 transport: http description: MCP adapter for Medium REST API — Images. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: upload-image description: Upload an image hints: readOnly: false destructive: false idempotent: false call: rest-images.uploadimage with: body: tools.body outputParameters: - type: object mapping: $.