{
    "openapi": "3.1.0",
    "info": {
        "title": "Canberra Tree Service public content API",
        "version": "1.0.0",
        "description": "Read-only WordPress REST endpoints exposing Canberra Tree Service pages, posts and site search. Quotes are handled by phone (+61 2 6105 9997) or the contact form.",
        "contact": {
            "name": "Canberra Tree Service",
            "url": "https://canberratreeservice.com.au/contact/"
        }
    },
    "servers": [
        {
            "url": "https://canberratreeservice.com.au/wp-json"
        }
    ],
    "paths": {
        "/wp/v2/pages": {
            "get": {
                "summary": "List service and suburb pages",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of page objects"
                    }
                }
            }
        },
        "/wp/v2/posts": {
            "get": {
                "summary": "List blog posts",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of post objects"
                    }
                }
            }
        },
        "/wp/v2/search": {
            "get": {
                "summary": "Search all public content",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Search results"
                    }
                }
            }
        }
    }
}