{
  "openapi": "3.0.3",
  "info": {
    "title": "Rice Measurements",
    "version": "1.0.0",
    "description": "Public, read-only rice measurement reference: rice per person, rice-to-water ratios by type, and unit conversions between cups, grams and ounces. No authentication is required or available.",
    "contact": {
      "url": "https://recipemeasure.com/contact"
    },
    "license": {
      "name": "See site terms",
      "url": "https://recipemeasure.com/privacy"
    }
  },
  "servers": [
    {
      "url": "https://recipemeasure.com"
    }
  ],
  "tags": [
    {
      "name": "content",
      "description": "Published content pages, retrievable as HTML or Markdown."
    },
    {
      "name": "discovery",
      "description": "Agent discovery documents."
    },
    {
      "name": "status",
      "description": "Service availability."
    }
  ],
  "paths": {
    "/llms.txt": {
      "get": {
        "tags": ["discovery"],
        "summary": "Agent-friendly overview of the site",
        "operationId": "getLlmsTxt",
        "responses": {
          "200": {
            "description": "Plain-text overview with links to every section.",
            "content": {
              "text/plain": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "tags": ["discovery"],
        "summary": "Expanded content index generated from the published pages",
        "operationId": "getLlmsFullTxt",
        "responses": {
          "200": {
            "description": "Plain-text index listing every page with its headings.",
            "content": {
              "text/plain": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "tags": ["discovery"],
        "summary": "Sitemap listing every canonical URL",
        "operationId": "getSitemap",
        "responses": {
          "200": {
            "description": "Sitemaps protocol XML.",
            "content": {
              "application/xml": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "tags": ["discovery"],
        "summary": "This API description",
        "operationId": "getOpenApi",
        "responses": {
          "200": {
            "description": "OpenAPI 3.0 document.",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          }
        }
      }
    },
    "/health.json": {
      "get": {
        "tags": ["status"],
        "summary": "Service status and which public endpoints are live",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "Availability of each public endpoint.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" },
                    "service": { "type": "string" },
                    "authentication_required": { "type": "boolean" },
                    "available": { "type": "boolean" },
                    "public_endpoints": { "type": "object" },
                    "planned_unavailable_endpoints": { "type": "object" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{page}": {
      "get": {
        "tags": ["content"],
        "summary": "Fetch a published page as HTML or Markdown",
        "description": "Set Accept: text/markdown to receive a Markdown rendering of the page. Anything else receives HTML. See /llms.txt for the list of published pages.",
        "operationId": "getPage",
        "parameters": [
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "Page slug, for example how-much-rice-per-person. Append .md to request the Markdown file directly.",
            "schema": { "type": "string" },
            "example": "how-much-rice-per-person"
          },
          {
            "name": "Accept",
            "in": "header",
            "required": false,
            "description": "Use text/markdown for the Markdown rendering.",
            "schema": { "type": "string", "example": "text/markdown" }
          }
        ],
        "responses": {
          "200": {
            "description": "The page, in the negotiated representation.",
            "content": {
              "text/html": { "schema": { "type": "string" } },
              "text/markdown": { "schema": { "type": "string" } }
            }
          },
          "404": {
            "description": "No such page."
          }
        }
      }
    }
  }
}
