{
    "openapi": "3.1.0",
    "info": {
        "title": "Vasquez Auto Glass Public Agent API",
        "version": "1.0.0",
        "description": "Read-only public business and service information for Vasquez Auto Glass in Houston, TX. This API does not create quotes, bookings, appointments, payments or customer records."
    },
    "servers": [
        {
            "url": "https://vasquezautoglass.com/api/v1"
        }
    ],
    "paths": {
        "/": {
            "get": {
                "summary": "API discovery index",
                "operationId": "getApiIndex",
                "responses": {
                    "200": {
                        "description": "API discovery links",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Problem details",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/site": {
            "get": {
                "summary": "Get public business information",
                "operationId": "getSiteInfo",
                "responses": {
                    "200": {
                        "description": "Public business information",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/SiteInfo"
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Problem details",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/services": {
            "get": {
                "summary": "List public auto glass services",
                "operationId": "listServices",
                "responses": {
                    "200": {
                        "description": "Service list",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Service"
                                    }
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Problem details",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/services/{slug}": {
            "get": {
                "summary": "Get one public service by slug",
                "operationId": "getService",
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Service details",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Service"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Unknown service",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    },
                    "default": {
                        "description": "Problem details",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Problem"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "SiteInfo": {
                "type": "object",
                "required": [
                    "name",
                    "url",
                    "phone",
                    "service_type",
                    "service_areas"
                ],
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "alternate_name": {
                        "type": "string",
                        "description": "The shop sign spelling."
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "phone": {
                        "type": "string"
                    },
                    "phone_e164": {
                        "type": "string"
                    },
                    "address": {
                        "type": "object"
                    },
                    "service_type": {
                        "type": "string"
                    },
                    "service_areas": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "vehicle_types": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "glass_types": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "mobile_service": {
                        "type": "boolean"
                    },
                    "hours": {
                        "type": "object"
                    },
                    "quote_policy": {
                        "type": "string"
                    },
                    "contact": {
                        "type": "string",
                        "format": "uri"
                    },
                    "agent_instructions": {
                        "type": "string",
                        "format": "uri"
                    }
                }
            },
            "Service": {
                "type": "object",
                "required": [
                    "slug",
                    "name",
                    "url",
                    "description"
                ],
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "description": {
                        "type": "string"
                    }
                }
            },
            "Problem": {
                "type": "object",
                "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "resolution"
                ],
                "properties": {
                    "type": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "status": {
                        "type": "integer"
                    },
                    "detail": {
                        "type": "string"
                    },
                    "instance": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "resolution": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    },
                    "hint": {
                        "type": "string"
                    }
                }
            }
        }
    }
}
