naftiko: 1.0.0-alpha2 info: label: Dev.to Forem API — Reactions description: 'Dev.to Forem API — Reactions. 2 operations. Lead operation: Create reaction. Self-contained Naftiko capability covering one Dev To business surface.' tags: - Dev To - Reactions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DEV_TO_API_KEY: DEV_TO_API_KEY capability: consumes: - type: http namespace: forem-reactions baseUri: https://dev.to/api description: Dev.to Forem API — Reactions business capability. Self-contained, no shared references. resources: - name: reactions path: /reactions operations: - name: createreaction method: POST description: Create reaction outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: reactions-toggle path: /reactions/toggle operations: - name: togglereaction method: POST description: Toggle reaction outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: category in: query type: string description: The category of reaction. required: true - name: reactable_id in: query type: integer description: The ID of the reactable entity. required: true - name: reactable_type in: query type: string description: The type of entity being reacted to. required: true authentication: type: apikey key: api-key value: '{{env.DEV_TO_API_KEY}}' placement: header exposes: - type: rest namespace: forem-reactions-rest port: 8080 description: REST adapter for Dev.to Forem API — Reactions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/reactions name: reactions description: REST surface for reactions. operations: - method: POST name: createreaction description: Create reaction call: forem-reactions.createreaction with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/reactions/toggle name: reactions-toggle description: REST surface for reactions-toggle. operations: - method: POST name: togglereaction description: Toggle reaction call: forem-reactions.togglereaction with: category: rest.category reactable_id: rest.reactable_id reactable_type: rest.reactable_type outputParameters: - type: object mapping: $. - type: mcp namespace: forem-reactions-mcp port: 9090 transport: http description: MCP adapter for Dev.to Forem API — Reactions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-reaction description: Create reaction hints: readOnly: false destructive: false idempotent: false call: forem-reactions.createreaction with: body: tools.body outputParameters: - type: object mapping: $. - name: toggle-reaction description: Toggle reaction hints: readOnly: false destructive: false idempotent: false call: forem-reactions.togglereaction with: category: tools.category reactable_id: tools.reactable_id reactable_type: tools.reactable_type outputParameters: - type: object mapping: $.