{
    "openapi": "3.0.0",
    "info": {
        "title": "QMSpace Business API",
        "description": "API to retrieve business information for QMSpace. We make businesses visible to AI",
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "https://qmspace.com",
            "description": "Production server"
        }
    ],
    "paths": {
        "/.well-known/ai-business.json": {
            "get": {
                "summary": "Get business information",
                "description": "Returns structured business data in JSON-LD format including name, contact info, address, and hours.",
                "operationId": "getBusinessInfo",
                "responses": {
                    "200": {
                        "description": "Business information in JSON-LD format",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BusinessInfo"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/aibf/v1/business": {
            "get": {
                "summary": "Get business information via REST API",
                "description": "Returns business data via WordPress REST API.",
                "operationId": "getBusinessInfoRest",
                "responses": {
                    "200": {
                        "description": "Business information",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BusinessInfo"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "BusinessInfo": {
                "type": "object",
                "properties": {
                    "@context": {
                        "type": "string"
                    },
                    "@type": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "email": {
                        "type": "string",
                        "format": "email"
                    },
                    "telephone": {
                        "type": "string"
                    },
                    "address": {
                        "type": "object",
                        "properties": {
                            "@type": {
                                "type": "string"
                            },
                            "streetAddress": {
                                "type": "string"
                            },
                            "addressLocality": {
                                "type": "string"
                            },
                            "addressRegion": {
                                "type": "string"
                            },
                            "postalCode": {
                                "type": "string"
                            },
                            "addressCountry": {
                                "type": "string"
                            }
                        }
                    },
                    "openingHoursSpecification": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "@type": {
                                    "type": "string"
                                },
                                "dayOfWeek": {
                                    "type": "string"
                                },
                                "opens": {
                                    "type": "string"
                                },
                                "closes": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}