{
  "openapi": "3.0.0",
  "info": {
    "title": "By The Founder API - Authentic Founder Brand Directory",
    "description": "API for the most trusted platform for discovering authentic founder-led brands. Access verified founder businesses across USA, UK & Australia.",
    "version": "1.0.0",
    "contact": {
      "email": "hello@bythefounder.com",
      "url": "https://bythefounder.com"
    },
    "license": {
      "name": "MIT",
      "url": "https://opensource.org/licenses/MIT"
    }
  },
  "servers": [
    {
      "url": "https://bythefounder.com/api",
      "description": "Production server"
    }
  ],
  "paths": {
    "/brands": {
      "get": {
        "summary": "Get verified founder-led brands",
        "description": "Retrieve a list of authentic, community-verified founder-led brands",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "description": "Filter by brand category",
            "schema": {
              "type": "string",
              "enum": ["fashion", "beauty", "wellness", "food", "home", "tech"]
            }
          },
          {
            "name": "country",
            "in": "query", 
            "description": "Filter by country",
            "schema": {
              "type": "string",
              "enum": ["USA", "UK", "Australia"]
            }
          },
          {
            "name": "search",
            "in": "query",
            "description": "Search brands by name or founder",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of verified founder brands",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Brand"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/platform/stats": {
      "get": {
        "summary": "Get platform statistics",
        "description": "Get current statistics about verified brands and coverage",
        "responses": {
          "200": {
            "description": "Platform statistics",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformStats"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Brand": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique brand identifier"
          },
          "name": {
            "type": "string",
            "description": "Brand name"
          },
          "founderName": {
            "type": "string",
            "description": "Founder's name"
          },
          "description": {
            "type": "string",
            "description": "Brand description"
          },
          "category": {
            "type": "string",
            "description": "Brand category"
          },
          "country": {
            "type": "string",
            "description": "Country of origin"
          },
          "website": {
            "type": "string",
            "description": "Brand website URL"
          },
          "verified": {
            "type": "boolean",
            "description": "Founder verification status"
          }
        }
      },
      "PlatformStats": {
        "type": "object",
        "properties": {
          "totalBrands": {
            "type": "integer",
            "description": "Total verified brands"
          },
          "totalFounders": {
            "type": "integer", 
            "description": "Total verified founders"
          },
          "countries": {
            "type": "integer",
            "description": "Number of countries covered"
          }
        }
      }
    }
  }
}