{
  "openapi": "3.0.3",
  "info": {
    "title": "Mediora.AI Public Catalog API",
    "version": "1.0.0",
    "description": "Anonymous, read-only JSON access to the Mediora.AI catalogs of lab markers, medical conditions and symptoms. No authentication. Responses are edge-cached for 1 hour. Companion to the Mediora MCP server at https://mcp.mediora.ai.",
    "contact": { "name": "Mediora.AI", "email": "support@mediora.ai", "url": "https://www.mediora.ai" }
  },
  "servers": [
    { "url": "https://api.mediora.ai", "description": "Production" }
  ],
  "paths": {
    "/api/public/catalog/markers": {
      "get": {
        "operationId": "listMarkers",
        "summary": "List all lab markers in the catalog.",
        "parameters": [
          { "name": "lang", "in": "query", "required": false, "schema": { "type": "string", "enum": ["en", "ru", "he"] }, "description": "Language of the returned text (default en)." }
        ],
        "responses": { "200": { "description": "Array of markers as JSON." } }
      }
    },
    "/api/public/catalog/markers/{slug}": {
      "get": {
        "operationId": "getMarker",
        "summary": "Get one lab marker by slug.",
        "parameters": [
          { "name": "slug", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "lang", "in": "query", "required": false, "schema": { "type": "string", "enum": ["en", "ru", "he"] } }
        ],
        "responses": { "200": { "description": "Marker detail JSON." }, "404": { "description": "Unknown slug." } }
      }
    },
    "/api/public/catalog/conditions": {
      "get": {
        "operationId": "listConditions",
        "summary": "List all medical conditions in the catalog.",
        "parameters": [
          { "name": "lang", "in": "query", "required": false, "schema": { "type": "string", "enum": ["en", "ru", "he"] } }
        ],
        "responses": { "200": { "description": "Array of conditions as JSON." } }
      }
    },
    "/api/public/catalog/conditions/{slug}": {
      "get": {
        "operationId": "getCondition",
        "summary": "Get one condition by slug.",
        "parameters": [
          { "name": "slug", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "lang", "in": "query", "required": false, "schema": { "type": "string", "enum": ["en", "ru", "he"] } }
        ],
        "responses": { "200": { "description": "Condition detail JSON." }, "404": { "description": "Unknown slug." } }
      }
    },
    "/api/public/catalog/symptoms": {
      "get": {
        "operationId": "listSymptoms",
        "summary": "List all symptoms in the catalog.",
        "parameters": [
          { "name": "lang", "in": "query", "required": false, "schema": { "type": "string", "enum": ["en", "ru", "he"] } }
        ],
        "responses": { "200": { "description": "Array of symptoms as JSON." } }
      }
    },
    "/api/public/catalog/symptoms/{slug}": {
      "get": {
        "operationId": "getSymptom",
        "summary": "Get one symptom by slug.",
        "parameters": [
          { "name": "slug", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "lang", "in": "query", "required": false, "schema": { "type": "string", "enum": ["en", "ru", "he"] } }
        ],
        "responses": { "200": { "description": "Symptom detail JSON." }, "404": { "description": "Unknown slug." } }
      }
    }
  }
}
