{
    "openapi": "3.1.0",
    "info": {
        "title": "Blog Fellyph Cintra — Public Content API",
        "description": "Blog sobre WordPress, IA, PWA e JavaScript. Read-only, public and free WordPress REST API endpoints for agents. No payment is required for any operation.",
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "https://blog.fellyph.com.br/wp-json"
        }
    ],
    "paths": {
        "/wp/v2/posts": {
            "get": {
                "operationId": "listPosts",
                "summary": "List or search blog posts",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Full-text search."
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 100,
                            "default": 10
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 1
                        }
                    },
                    {
                        "name": "_fields",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated fields to return, e.g. id,title,link,excerpt."
                    },
                    {
                        "name": "categories",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Category IDs, comma-separated."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Post"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp/v2/posts/{id}": {
            "get": {
                "operationId": "getPost",
                "summary": "Get one blog post with full content",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Post"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found"
                    }
                }
            }
        },
        "/wp/v2/pages": {
            "get": {
                "operationId": "listPages",
                "summary": "List pages",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Full-text search."
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 100,
                            "default": 10
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 1
                        }
                    },
                    {
                        "name": "_fields",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated fields to return, e.g. id,title,link,excerpt."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Post"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp/v2/categories": {
            "get": {
                "operationId": "listCategories",
                "summary": "List categories",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Full-text search."
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 100,
                            "default": 10
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 1
                        }
                    },
                    {
                        "name": "_fields",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated fields to return, e.g. id,title,link,excerpt."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Term"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp/v2/tags": {
            "get": {
                "operationId": "listTags",
                "summary": "List tags",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Full-text search."
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 100,
                            "default": 10
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 1
                        }
                    },
                    {
                        "name": "_fields",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated fields to return, e.g. id,title,link,excerpt."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Term"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp/v2/search": {
            "get": {
                "operationId": "searchSite",
                "summary": "Search all public content",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Full-text search."
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 100,
                            "default": 10
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "default": 1
                        }
                    },
                    {
                        "name": "_fields",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        },
                        "description": "Comma-separated fields to return, e.g. id,title,link,excerpt."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/agent-ready/v1/health": {
            "get": {
                "operationId": "health",
                "summary": "Service health",
                "responses": {
                    "200": {
                        "description": "Healthy"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "Post": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "date": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "modified": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "link": {
                        "type": "string",
                        "format": "uri"
                    },
                    "title": {
                        "type": "object",
                        "properties": {
                            "rendered": {
                                "type": "string"
                            }
                        }
                    },
                    "excerpt": {
                        "type": "object",
                        "properties": {
                            "rendered": {
                                "type": "string"
                            }
                        }
                    },
                    "content": {
                        "type": "object",
                        "properties": {
                            "rendered": {
                                "type": "string"
                            }
                        }
                    }
                }
            },
            "Term": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "count": {
                        "type": "integer"
                    }
                }
            }
        }
    }
}