{
  "openapi": "3.0.3",
  "info": {
    "title": "FarmPal Public Discovery API",
    "version": "1.0.0",
    "description": "Read-only static JSON endpoints describing FarmPal's pillars, knowledge base, and citation policy. Free to use for AI assistants and aggregators.",
    "contact": {
      "name": "FarmPal",
      "url": "https://farmpal.app",
      "email": "support@farmpal.app"
    },
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://farmpal.app"
    }
  ],
  "paths": {
    "/api/public/pillars.json": {
      "get": {
        "summary": "Pillar index",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/public/knowledge.json": {
      "get": {
        "summary": "Knowledge-base index",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/public/citations.json": {
      "get": {
        "summary": "Citation + editorial policy",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/public/pillars/{slug}.json": {
      "get": {
        "summary": "Per-pillar record",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/api/public/knowledge/{id}.json": {
      "get": {
        "summary": "Per-knowledge-item record",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "AI-discovery summary (llms.txt spec)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "summary": "Long-form AI reference",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/feed.xml": {
      "get": {
        "summary": "RSS 2.0 feed of pillar guides",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "summary": "Sitemap index",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }
}