{
  "openapi": "3.1.0",
  "info": {
    "title": "Llull Systems Public Service Catalog API",
    "version": "1.0.0",
    "description": "Public, read-only descriptions of Llull consulting and software development services in Spanish and English. No customer data, purchases or inquiry submission. Prices and terms require a scoped proposal. The /api/v1/ contract uses URL versioning. Incompatible changes require a new major version. Deprecation policy: announce removal at least 90 days in advance with migration guidance and Deprecation/Sunset headers. No sunset is currently scheduled.",
    "contact": {
      "name": "Llull Systems",
      "url": "https://llull.systems/contact/",
      "email": "hola@llull.systems"
    }
  },
  "servers": [
    {
      "url": "/",
      "description": "The host serving this contract: production, preview or local development."
    }
  ],
  "externalDocs": {
    "url": "/developers/",
    "description": "Llull Systems agent and developer documentation"
  },
  "security": [],
  "paths": {
    "/api/v1/services.json": {
      "get": {
        "operationId": "getLlullServiceCatalog",
        "summary": "Read Llull services in Spanish and English",
        "description": "Returns the complete bounded service collection with deliverables, when-to-use guidance and canonical pages. Omit language for both languages or select es/en. No authentication or pagination. Cache for five minutes. Atlas illustrations are not client references.",
        "responses": {
          "200": {
            "description": "Complete bilingual service catalog",
            "headers": {
              "Cache-Control": {
                "description": "Cache catalog for 300 seconds",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["version", "catalogs"],
                  "properties": {
                    "version": {
                      "type": "string",
                      "const": "1"
                    },
                    "catalogs": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 2,
                      "items": {
                        "$ref": "#/components/schemas/Catalog"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Unsupported query parameter; remove query string",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Unknown API route; consult this specification",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Unsupported method; use GET or HEAD",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Catalog temporarily unavailable; retry later",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Select Spanish (es) or English (en). Omit for both.",
            "schema": {
              "type": "string",
              "enum": ["es", "en"]
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Service": {
        "type": "object",
        "required": ["id", "name", "description", "deliverable", "whenToUse", "url"],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "deliverable": {
            "type": "string"
          },
          "whenToUse": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Catalog": {
        "type": "object",
        "required": ["name", "language", "contact", "pricing", "services"],
        "properties": {
          "name": {
            "type": "string"
          },
          "language": {
            "type": "string",
            "enum": ["es", "en"]
          },
          "contact": {
            "type": "string",
            "format": "uri"
          },
          "pricing": {
            "type": "string"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Service"
            }
          }
        }
      },
      "Problem": {
        "type": "object",
        "required": ["type", "title", "status", "code", "detail", "resolution"],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "resolution": {
            "type": "string"
          }
        }
      }
    }
  }
}
