Lagom · Schema

Lagom Service Descriptor

JSON Schema representing the structure of a Lagom service descriptor, defining service calls, topics, and ACLs.

AkkaEvent SourcingFrameworksJavaMicroservicesReactiveScala

Properties

Name Type Description
name string The name of the service.
calls array List of service call definitions.
topics array List of topic definitions for event publishing.
acls array Access control list entries.
View JSON Schema on GitHub

JSON Schema

lagom-service-descriptor.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/lagom/json-schema/lagom-service-descriptor.json",
  "title": "Lagom Service Descriptor",
  "description": "JSON Schema representing the structure of a Lagom service descriptor, defining service calls, topics, and ACLs.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the service."
    },
    "calls": {
      "type": "array",
      "description": "List of service call definitions.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the service call."
          },
          "method": {
            "type": "string",
            "description": "HTTP method for the call.",
            "enum": ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]
          },
          "path": {
            "type": "string",
            "description": "URL path pattern for the call (e.g., /api/items/:id)."
          },
          "circuitBreaker": {
            "type": "object",
            "description": "Circuit breaker configuration for this call.",
            "properties": {
              "enabled": {
                "type": "boolean",
                "default": true
              },
              "maxFailures": {
                "type": "integer",
                "default": 10
              },
              "callTimeout": {
                "type": "string",
                "description": "Duration string (e.g., 10s).",
                "default": "10s"
              },
              "resetTimeout": {
                "type": "string",
                "description": "Duration string (e.g., 15s).",
                "default": "15s"
              }
            },
            "additionalProperties": true
          },
          "autoAcl": {
            "type": "boolean",
            "description": "Automatically generate ACL for this call.",
            "default": true
          }
        },
        "required": ["name", "path"],
        "additionalProperties": true
      }
    },
    "topics": {
      "type": "array",
      "description": "List of topic definitions for event publishing.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Topic name."
          },
          "partitionKeyStrategy": {
            "type": "string",
            "description": "Fully qualified class name of the partition key strategy."
          }
        },
        "required": ["name"],
        "additionalProperties": true
      }
    },
    "acls": {
      "type": "array",
      "description": "Access control list entries.",
      "items": {
        "type": "object",
        "properties": {
          "method": {
            "type": "string",
            "enum": ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]
          },
          "pathRegex": {
            "type": "string",
            "description": "Regex pattern for matching request paths."
          }
        },
        "additionalProperties": true
      }
    }
  },
  "required": ["name"],
  "additionalProperties": true
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/lagom-service-descriptor"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.