{
  "openapi": "3.1.0",
  "info": {
    "title": "The Form Review Evidence API",
    "version": "1.0.0",
    "description": "Public, read-only access to the structured form-builder review and customer-story datasets published by The Form Review.",
    "contact": {
      "name": "The Form Review",
      "url": "https://best-form-builder.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://best-form-builder.com",
      "description": "Production"
    }
  ],
  "security": [],
  "externalDocs": {
    "description": "Developer and agent resources",
    "url": "https://best-form-builder.com/developers"
  },
  "paths": {
    "/api/v1/reviews": {
      "get": {
        "operationId": "listFormBuilderReviews",
        "summary": "List published form-builder review evidence",
        "description": "Returns the current ranked form-builder dataset, including buyer-fit labels, plan notes, strengths, limitations, and source URLs.",
        "tags": ["Evidence"],
        "responses": {
          "200": {
            "description": "The published review dataset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewDataset"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          }
        }
      }
    },
    "/api/v1/customer-stories": {
      "get": {
        "operationId": "listFormBuilderCustomerStories",
        "summary": "List sourced form-builder customer stories",
        "description": "Returns vendor-published customer stories with attribution, use cases, reported outcomes, and source URLs.",
        "tags": ["Evidence"],
        "responses": {
          "200": {
            "description": "The published customer-story dataset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerStoryDataset"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "NotFound": {
        "description": "The requested API resource does not exist.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      },
      "MethodNotAllowed": {
        "description": "The endpoint is read-only and does not support this method.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        }
      }
    },
    "schemas": {
      "ApiError": {
        "type": "object",
        "additionalProperties": false,
        "required": ["error"],
        "properties": {
          "error": {
            "type": "object",
            "additionalProperties": false,
            "required": ["code", "message", "status", "resolution", "docs_url"],
            "properties": {
              "code": { "type": "string" },
              "message": { "type": "string" },
              "status": { "type": "integer" },
              "resolution": { "type": "string" },
              "docs_url": { "type": "string", "format": "uri" }
            }
          }
        }
      },
      "ReviewDataset": {
        "type": "object",
        "description": "Schema.org Dataset containing the current ranked review records.",
        "additionalProperties": true,
        "required": ["@context", "@type", "name", "hasPart"],
        "properties": {
          "@context": { "type": "string" },
          "@type": { "const": "Dataset" },
          "name": { "type": "string" },
          "dateModified": { "type": "string", "format": "date" },
          "hasPart": { "type": "array", "items": { "type": "object", "additionalProperties": true } }
        }
      },
      "CustomerStoryDataset": {
        "type": "object",
        "description": "Schema.org Dataset containing sourced vendor-published customer stories.",
        "additionalProperties": true,
        "required": ["@context", "@type", "name", "hasPart"],
        "properties": {
          "@context": { "type": "string" },
          "@type": { "const": "Dataset" },
          "name": { "type": "string" },
          "dateModified": { "type": "string", "format": "date" },
          "hasPart": { "type": "array", "items": { "type": "object", "additionalProperties": true } }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Evidence",
      "description": "Public, read-only editorial evidence."
    }
  ]
}
