{
  "openapi": "3.1.0",
  "info": {
    "title": "Fada Madrinha public read API",
    "version": "1.0.0",
    "description": "Endpoints públicos somente-leitura com animais para apadrinhamento, ONGs verificadas e eventos. Nenhum dado pessoal é exposto. Requer o cabeçalho apikey com a chave pública publicada em /.well-known/api-catalog do cliente web.",
    "contact": {
      "url": "https://fadamadrinha.app.br"
    }
  },
  "servers": [
    { "url": "https://rtbxuktssgoamztvdwpw.supabase.co/rest/v1" }
  ],
  "paths": {
    "/sponsored": {
      "get": {
        "operationId": "listAnimals",
        "summary": "Lista animais disponíveis para apadrinhamento",
        "parameters": [
          {
            "name": "select",
            "in": "query",
            "required": false,
            "schema": { "type": "string", "default": "*" }
          }
        ],
        "responses": {
          "200": {
            "description": "Lista de animais",
            "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object" } } } }
          }
        }
      }
    },
    "/organizations": {
      "get": {
        "operationId": "listOrganizations",
        "summary": "Lista ONGs verificadas",
        "responses": {
          "200": {
            "description": "Lista de ONGs",
            "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object" } } } }
          }
        }
      }
    },
    "/events": {
      "get": {
        "operationId": "listEvents",
        "summary": "Lista eventos públicos das ONGs",
        "responses": {
          "200": {
            "description": "Lista de eventos",
            "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object" } } } }
          }
        }
      }
    }
  }
}
