FakerAPI · Capability

FakerAPI — Books

Books — Books. 1 operation. Lead operation: List Fake Books. Self-contained Naftiko capability covering one FakerAPI business surface for fake book records.

Run with Naftiko FakerAPITest DataBooks

What You Can Do

GET
Listbooks — Return a collection of fake book records.
/v1/books

MCP Tools

list-fake-books

Return a collection of fake book records.

read-only idempotent

Capability Spec

fakerapi-books.yaml Raw ↑
naftiko: "1.0.0-alpha2"

info:
  label: "FakerAPI — Books"
  description: >-
    Books — Books. 1 operation. Lead operation: List Fake Books.
    Self-contained Naftiko capability covering one FakerAPI business surface
    for fake book records.
  tags:
    - FakerAPI
    - Test Data
    - Books
  created: "2026-05-30"
  modified: "2026-05-30"

binds: []

capability:

  consumes:
    - type: http
      namespace: "fakerapi-books"
      baseUri: "https://fakerapi.it/api/v1"
      description: "FakerAPI — Books business capability. No authentication required."
      resources:
        - name: "books"
          path: "/books"
          operations:
            - name: "listBooks"
              method: GET
              description: "Return a collection of fake book records (title, author, genre, ISBN, publisher)."
              inputParameters:
                - name: "_quantity"
                  in: query
                  type: integer
                  required: false
                  description: "Number of records to return (1-1000, default 10)."
                - name: "_locale"
                  in: query
                  type: string
                  required: false
                  description: "Locale code (e.g. en_US, fr_FR)."
                - name: "_seed"
                  in: query
                  type: integer
                  required: false
                  description: "Integer seed for deterministic output."
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: "$."

  exposes:
    - type: rest
      namespace: "fakerapi-books-rest"
      port: 8080
      description: "REST adapter for FakerAPI — Books."
      resources:
        - path: "/v1/books"
          name: "books"
          description: "REST surface for fake books."
          operations:
            - method: GET
              name: "listBooks"
              description: "Return a collection of fake book records."
              call: "fakerapi-books.listBooks"
              with:
                "_quantity": "rest._quantity"
                "_locale": "rest._locale"
                "_seed": "rest._seed"
              outputParameters:
                - type: object
                  mapping: "$."

    - type: mcp
      namespace: "fakerapi-books-mcp"
      port: 9090
      transport: http
      description: "MCP adapter for FakerAPI — Books."
      tools:
        - name: "list-fake-books"
          description: "Return a collection of fake book records."
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: "fakerapi-books.listBooks"
          with:
            "_quantity": "tools._quantity"
            "_locale": "tools._locale"
            "_seed": "tools._seed"
          outputParameters:
            - type: object
              mapping: "$."