naftiko: 1.0.0-alpha2 info: label: Dev.to Forem API — DisplayAds description: 'Dev.to Forem API — DisplayAds. 5 operations. Lead operation: Display ads. Self-contained Naftiko capability covering one Dev To business surface.' tags: - Dev To - DisplayAds 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-displayads baseUri: https://dev.to/api description: Dev.to Forem API — DisplayAds business capability. Self-contained, no shared references. resources: - name: display_ads path: /display_ads operations: - name: getdisplayads method: GET description: Display ads outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createdisplayad method: POST description: Create display ad outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: display_ads-id path: /display_ads/{id} operations: - name: getdisplayadbyid method: GET description: Display ad outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: The ID of the display ad. required: true - name: updatedisplayad method: PUT description: Update display ad outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: The ID of the display ad. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: display_ads-id-unpublish path: /display_ads/{id}/unpublish operations: - name: unpublishdisplayad method: PUT description: Unpublish display ad outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: The ID of the display ad. required: true authentication: type: apikey key: api-key value: '{{env.DEV_TO_API_KEY}}' placement: header exposes: - type: rest namespace: forem-displayads-rest port: 8080 description: REST adapter for Dev.to Forem API — DisplayAds. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/display-ads name: display-ads description: REST surface for display_ads. operations: - method: GET name: getdisplayads description: Display ads call: forem-displayads.getdisplayads outputParameters: - type: object mapping: $. - method: POST name: createdisplayad description: Create display ad call: forem-displayads.createdisplayad with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/display-ads/{id} name: display-ads-id description: REST surface for display_ads-id. operations: - method: GET name: getdisplayadbyid description: Display ad call: forem-displayads.getdisplayadbyid with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: updatedisplayad description: Update display ad call: forem-displayads.updatedisplayad with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/display-ads/{id}/unpublish name: display-ads-id-unpublish description: REST surface for display_ads-id-unpublish. operations: - method: PUT name: unpublishdisplayad description: Unpublish display ad call: forem-displayads.unpublishdisplayad with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: forem-displayads-mcp port: 9090 transport: http description: MCP adapter for Dev.to Forem API — DisplayAds. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: display-ads description: Display ads hints: readOnly: true destructive: false idempotent: true call: forem-displayads.getdisplayads outputParameters: - type: object mapping: $. - name: create-display-ad description: Create display ad hints: readOnly: false destructive: false idempotent: false call: forem-displayads.createdisplayad with: body: tools.body outputParameters: - type: object mapping: $. - name: display-ad description: Display ad hints: readOnly: true destructive: false idempotent: true call: forem-displayads.getdisplayadbyid with: id: tools.id outputParameters: - type: object mapping: $. - name: update-display-ad description: Update display ad hints: readOnly: false destructive: false idempotent: true call: forem-displayads.updatedisplayad with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: unpublish-display-ad description: Unpublish display ad hints: readOnly: false destructive: false idempotent: true call: forem-displayads.unpublishdisplayad with: id: tools.id outputParameters: - type: object mapping: $.