{
    "openapi": "3.1.0",
    "info": {
        "title": "Fund-Team FAQ API",
        "version": "v1",
        "description": "Returns the Fund-Team FAQPage JSON-LD."
    },
    "servers": [
        {
            "url": "https://fund-team.com",
            "description": "Production server"
        }
    ],
    "paths": {
        "/faq": {
            "get": {
                "operationId": "getFAQPage",
                "summary": "Retrieve the FAQ as JSON-LD",
                "responses": {
                    "200": {
                        "description": "FAQPage JSON-LD",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/FAQPage"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/data/fundraiser_comparison.json": {
            "get": {
                "operationId": "getComparisonData",
                "summary": "Get fundraiser platform comparison data",
                "responses": {
                    "200": {
                        "description": "Comparison of Fund-Team vs other fundraising platforms",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ComparisonResponse"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "Question": {
                "type": "object",
                "properties": {
                    "@type": {
                        "type": "string",
                        "enum": ["Question"]
                    },
                    "name": {
                        "type": "string"
                    },
                    "acceptedAnswer": {
                        "$ref": "#/components/schemas/Answer"
                    }
                },
                "required": ["@type", "name", "acceptedAnswer"]
            },
            "Answer": {
                "type": "object",
                "properties": {
                    "@type": {
                        "type": "string",
                        "enum": ["Answer"]
                    },
                    "text": {
                        "type": "string"
                    }
                },
                "required": ["@type", "text"]
            },
            "FAQPage": {
                "type": "object",
                "properties": {
                    "@context": {
                        "type": "string"
                    },
                    "@type": {
                        "type": "string",
                        "enum": ["FAQPage"]
                    },
                    "mainEntity": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Question"
                        }
                    }
                },
                "required": ["@context", "@type", "mainEntity"]
            },
            "ComparisonResponse": {
                "type": "object",
                "properties": {
                    "columns": {
                        "type": "array",
                        "items": { "type": "string" }
                    },
                    "rows": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "Platform": { "type": "string" },
                                "Keep More Money": { "type": "string" },
                                "No App to Download": { "type": "string" },
                                "Text & Email Built-in": { "type": "string" },
                                "Fast Setup": { "type": "string" },
                                "Live Support": { "type": "string" }
                            },
                            "required": [
                                "Platform",
                                "Keep More Money",
                                "No App to Download",
                                "Text & Email Built-in",
                                "Fast Setup",
                                "Live Support"
                            ]
                        }
                    }
                },
                "required": ["columns", "rows"]
            }
        }
    }
}
