Spring Data · Capability

Spring Data REST API — Search

Spring Data REST API — Search. 2 operations. Lead operation: List Search Methods. Self-contained Naftiko capability covering one Spring Data business surface.

Run with Naftiko Spring DataSearch

What You Can Do

GET
Listsearchmethods — List Search Methods
/v1/{repository}/search
GET
Executesearchmethod — Execute Repository Search Method
/v1/{repository}/search/{method}

MCP Tools

list-search-methods

List Search Methods

read-only idempotent
execute-repository-search-method

Execute Repository Search Method

read-only idempotent

Capability Spec

rest-search.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Spring Data REST API — Search
  description: 'Spring Data REST API — Search. 2 operations. Lead operation: List Search Methods. Self-contained Naftiko capability
    covering one Spring Data business surface.'
  tags:
  - Spring Data
  - Search
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SPRING_DATA_API_KEY: SPRING_DATA_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-search
    baseUri: http://localhost:8080
    description: Spring Data REST API — Search business capability. Self-contained, no shared references.
    resources:
    - name: repository-search
      path: /{repository}/search
      operations:
      - name: listsearchmethods
        method: GET
        description: List Search Methods
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository
          in: path
          type: string
          required: true
    - name: repository-search-method
      path: /{repository}/search/{method}
      operations:
      - name: executesearchmethod
        method: GET
        description: Execute Repository Search Method
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: repository
          in: path
          type: string
          required: true
        - name: method
          in: path
          type: string
          description: Query method name as exposed by the repository
          required: true
        - name: page
          in: query
          type: integer
        - name: size
          in: query
          type: integer
        - name: sort
          in: query
          type: array
  exposes:
  - type: rest
    namespace: rest-search-rest
    port: 8080
    description: REST adapter for Spring Data REST API — Search. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/{repository}/search
      name: repository-search
      description: REST surface for repository-search.
      operations:
      - method: GET
        name: listsearchmethods
        description: List Search Methods
        call: rest-search.listsearchmethods
        with:
          repository: rest.repository
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{repository}/search/{method}
      name: repository-search-method
      description: REST surface for repository-search-method.
      operations:
      - method: GET
        name: executesearchmethod
        description: Execute Repository Search Method
        call: rest-search.executesearchmethod
        with:
          repository: rest.repository
          method: rest.method
          page: rest.page
          size: rest.size
          sort: rest.sort
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-search-mcp
    port: 9090
    transport: http
    description: MCP adapter for Spring Data REST API — Search. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-search-methods
      description: List Search Methods
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-search.listsearchmethods
      with:
        repository: tools.repository
      outputParameters:
      - type: object
        mapping: $.
    - name: execute-repository-search-method
      description: Execute Repository Search Method
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-search.executesearchmethod
      with:
        repository: tools.repository
        method: tools.method
        page: tools.page
        size: tools.size
        sort: tools.sort
      outputParameters:
      - type: object
        mapping: $.