Aligned News · Capability

Aligned News REST API — Stories

Aligned News REST API — Stories. 2 operations. Lead operation: List Stories. Self-contained Naftiko capability covering one Aligned News business surface.

Run with Naftiko Aligned NewsStories

What You Can Do

GET
Liststories — List Stories
/v1/stories
GET
Getstory — Get Story
/v1/stories/{id}

MCP Tools

list-stories

List Stories

read-only idempotent
get-story

Get Story

read-only idempotent

Capability Spec

aligned-news-stories.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Aligned News REST API — Stories
  description: 'Aligned News REST API — Stories. 2 operations. Lead operation: List Stories. Self-contained Naftiko capability
    covering one Aligned News business surface.'
  tags:
  - Aligned News
  - Stories
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ALIGNED_NEWS_API_KEY: ALIGNED_NEWS_API_KEY
capability:
  consumes:
  - type: http
    namespace: aligned-news-stories
    baseUri: https://alignednews.com/v1
    description: Aligned News REST API — Stories business capability. Self-contained, no shared references.
    resources:
    - name: stories
      path: /stories
      operations:
      - name: liststories
        method: GET
        description: List Stories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: section
          in: query
          type: string
          description: Filter by section slug.
        - name: tag
          in: query
          type: string
          description: Filter by tag.
        - name: limit
          in: query
          type: integer
          description: Maximum number of stories to return (default 20, max 100).
    - name: stories-id
      path: /stories/{id}
      operations:
      - name: getstory
        method: GET
        description: Get Story
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ALIGNED_NEWS_API_KEY}}'
  exposes:
  - type: rest
    namespace: aligned-news-stories-rest
    port: 8080
    description: REST adapter for Aligned News REST API — Stories. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/stories
      name: stories
      description: REST surface for stories.
      operations:
      - method: GET
        name: liststories
        description: List Stories
        call: aligned-news-stories.liststories
        with:
          section: rest.section
          tag: rest.tag
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/stories/{id}
      name: stories-id
      description: REST surface for stories-id.
      operations:
      - method: GET
        name: getstory
        description: Get Story
        call: aligned-news-stories.getstory
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: aligned-news-stories-mcp
    port: 9090
    transport: http
    description: MCP adapter for Aligned News REST API — Stories. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-stories
      description: List Stories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aligned-news-stories.liststories
      with:
        section: tools.section
        tag: tools.tag
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: get-story
      description: Get Story
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aligned-news-stories.getstory
      outputParameters:
      - type: object
        mapping: $.