{
  "openapi": "3.0.0",
  "info": {
    "title": "Chauffeur Privé Tunis API",
    "description": "API pour obtenir des informations sur les services de transport VTC en Tunisie",
    "version": "1.0.0",
    "contact": {
      "name": "Chauffeur Privé Tunis",
      "email": "contact@chauffeur-prive.tn",
      "url": "https://www.chauffeur-prive.tn"
    }
  },
  "servers": [
    {
      "url": "https://utztwoeyatjhwfzfuvtg.supabase.co/functions/v1",
      "description": "Production API"
    }
  ],
  "paths": {
    "/ai-context": {
      "get": {
        "operationId": "getAIContext",
        "summary": "Get business context for AI agents",
        "description": "Returns structured information about Chauffeur Privé Tunis services, pricing, coverage, and FAQ for AI/LLM consumption",
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "description": "Type of information to retrieve",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["info", "pricing", "services", "faq", "coverage", "contact"]
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "Natural language query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "description": "Response language",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["fr", "en", "ar"],
              "default": "fr"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with business information",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": { "type": "string" },
                    "data": { "type": "object" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
  "openapi": "3.1.0",
  "info": {
    "title": "Chauffeur Privé Tunis API",
    "description": "API publique pour obtenir les informations de services, tarifs et couverture géographique de Chauffeur Privé Tunis.",
    "version": "1.0.0",
    "contact": {
      "email": "contact@chauffeur-prive.tn"
    }
  },
  "servers": [
    {
      "url": "https://www.chauffeur-prive.tn"
    }
  ],
  "paths": {
    "/llms.txt": {
      "get": {
        "operationId": "getLLMSummary",
        "summary": "Get structured summary of all services and coverage for LLM consumption",
        "responses": {
          "200": {
            "description": "Structured text summary",
            "content": {
              "text/plain": {}
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLLMFullDocumentation",
        "summary": "Get comprehensive documentation of all services, pricing, fleet, and 90+ coverage zones",
        "responses": {
          "200": {
            "description": "Full documentation text",
            "content": {
              "text/plain": {}
            }
          }
        }
      }
    },
    "/llms-sitemap.xml": {
      "get": {
        "operationId": "getAISitemap",
        "summary": "Get AI-optimized sitemap with NLP summaries and quality scores for all pages",
        "responses": {
          "200": {
            "description": "XML sitemap with AI annotations",
            "content": {
              "application/xml": {}
            }
          }
        }
      }
    }
  }
}
