{
  "openapi": "3.1.0",
  "info": {
    "title": "SurePaddi Public API",
    "version": "1.0.0",
    "description": "Read-only discovery endpoints for Nigerian business reviews on SurePaddi.",
    "contact": { "name": "SurePaddi", "url": "https://surepaddi.com/contact" }
  },
  "servers": [{ "url": "https://vnrdagcwtbnaimcqjkoz.supabase.co/rest/v1" }],
  "paths": {
    "/businesses": {
      "get": {
        "operationId": "listBusinesses",
        "summary": "List approved businesses",
        "parameters": [
          {
            "name": "select",
            "in": "query",
            "schema": { "type": "string", "default": "*" },
            "description": "Columns to return."
          },
          {
            "name": "name",
            "in": "query",
            "schema": { "type": "string" },
            "description": "PostgREST filter, e.g. ilike.*jumia*"
          }
        ],
        "responses": {
          "200": {
            "description": "Array of businesses",
            "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object" } } } }
          }
        }
      }
    },
    "/reviews": {
      "get": {
        "operationId": "listReviews",
        "summary": "List published reviews",
        "responses": {
          "200": {
            "description": "Array of reviews",
            "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object" } } } }
          }
        }
      }
    },
    "/categories": {
      "get": {
        "operationId": "listCategories",
        "summary": "List business categories",
        "responses": {
          "200": {
            "description": "Array of categories",
            "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object" } } } }
          }
        }
      }
    }
  }
}
