ReadMe · Capability

ReadMe API — Branches

ReadMe API — Branches. 5 operations. Lead operation: List versions. Self-contained Naftiko capability covering one Readme business surface.

Run with Naftiko ReadmeBranches

What You Can Do

GET
Get — List versions
/v1/version
POST
Post — Create a version
/v1/version
GET
Get — Get a version
/v1/version/{versionid}
PUT
Put — Update a version
/v1/version/{versionid}
DELETE
Delete — Delete a version
/v1/version/{versionid}

MCP Tools

list-versions

List versions

read-only idempotent
create-version

Create a version

get-version

Get a version

read-only idempotent
update-version

Update a version

idempotent
delete-version

Delete a version

idempotent

Capability Spec

readme-branches.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ReadMe API — Branches
  description: 'ReadMe API — Branches. 5 operations. Lead operation: List versions. Self-contained Naftiko capability covering
    one Readme business surface.'
  tags:
  - Readme
  - Branches
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    README_API_KEY: README_API_KEY
capability:
  consumes:
  - type: http
    namespace: readme-branches
    baseUri: https://api.readme.com/v2
    description: ReadMe API — Branches business capability. Self-contained, no shared references.
    resources:
    - name: version
      path: /version
      operations:
      - name: get
        method: GET
        description: List versions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Create a version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: version-versionId
      path: /version/{versionId}
      operations:
      - name: get
        method: GET
        description: Get a version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: versionId
          in: path
          type: string
          required: true
      - name: put
        method: PUT
        description: Update a version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: versionId
          in: path
          type: string
          required: true
      - name: delete
        method: DELETE
        description: Delete a version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: versionId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.README_API_KEY}}'
  exposes:
  - type: rest
    namespace: readme-branches-rest
    port: 8080
    description: REST adapter for ReadMe API — Branches. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/version
      name: version
      description: REST surface for version.
      operations:
      - method: GET
        name: get
        description: List versions
        call: readme-branches.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create a version
        call: readme-branches.post
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/version/{versionid}
      name: version-versionid
      description: REST surface for version-versionId.
      operations:
      - method: GET
        name: get
        description: Get a version
        call: readme-branches.get
        with:
          versionId: rest.versionId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Update a version
        call: readme-branches.put
        with:
          versionId: rest.versionId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a version
        call: readme-branches.delete
        with:
          versionId: rest.versionId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: readme-branches-mcp
    port: 9090
    transport: http
    description: MCP adapter for ReadMe API — Branches. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-versions
      description: List versions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: readme-branches.get
      outputParameters:
      - type: object
        mapping: $.
    - name: create-version
      description: Create a version
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: readme-branches.post
      outputParameters:
      - type: object
        mapping: $.
    - name: get-version
      description: Get a version
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: readme-branches.get
      with:
        versionId: tools.versionId
      outputParameters:
      - type: object
        mapping: $.
    - name: update-version
      description: Update a version
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: readme-branches.put
      with:
        versionId: tools.versionId
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-version
      description: Delete a version
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: readme-branches.delete
      with:
        versionId: tools.versionId
      outputParameters:
      - type: object
        mapping: $.