{
    "openapi": "3.1.0",
    "info": {
        "title": "Fleurig open data",
        "version": "1",
        "description": "Alleen-lezen gegevens van https://fleurig.nl/ voor AI-assistenten en agents. Uitleg: https://fleurig.nl/voor-ai/. Limiet: 60 verzoeken per minuut per IP; antwoorden zijn 5 minuten te cachen.",
        "contact": {
            "email": "redactie@fleurig.nl"
        }
    },
    "servers": [
        {
            "url": "https://fleurig.nl"
        }
    ],
    "paths": {
        "/api/facts.json": {
            "get": {
                "summary": "Profiel en kerncijfers",
                "responses": {
                    "200": {
                        "description": "Naam, rubrieken, auteurs, werkwijze en kerncijfers met bron en peildatum.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Antwoord"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Meer dan 60 verzoeken per minuut; zie Retry-After."
                    }
                }
            }
        },
        "/api/content.json": {
            "get": {
                "summary": "Alle artikelen en pagina's",
                "responses": {
                    "200": {
                        "description": "Index met titel, URL, Markdown-adres, rubriek, auteur, datums en samenvatting; 100 per pagina.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Antwoord"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Meer dan 60 verzoeken per minuut; zie Retry-After."
                    }
                },
                "parameters": [
                    {
                        "name": "pagina",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        }
                    }
                ]
            }
        },
        "/api/answers.json": {
            "get": {
                "summary": "Vragen en antwoorden",
                "responses": {
                    "200": {
                        "description": "Alle vragen en antwoorden die zichtbaar op de site staan, met URL.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Antwoord"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Meer dan 60 verzoeken per minuut; zie Retry-After."
                    }
                }
            }
        },
        "/api/claims.json": {
            "get": {
                "summary": "Beweringen met bron",
                "responses": {
                    "200": {
                        "description": "Bedragen en percentages met bron en peildatum (Fleurig heeft er geen).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Antwoord"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Meer dan 60 verzoeken per minuut; zie Retry-After."
                    }
                }
            }
        },
        "/api/tools.json": {
            "get": {
                "summary": "Hulpmiddelen",
                "responses": {
                    "200": {
                        "description": "Hulpmiddelen van de site met de bijbehorende MCP-tool en invoer.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Antwoord"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Meer dan 60 verzoeken per minuut; zie Retry-After."
                    }
                }
            }
        },
        "/api/changes.json": {
            "get": {
                "summary": "Laatste wijzigingen",
                "responses": {
                    "200": {
                        "description": "De 50 laatst gepubliceerde of bijgewerkte stukken, nieuwste eerst.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Antwoord"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Meer dan 60 verzoeken per minuut; zie Retry-After."
                    }
                }
            }
        },
        "/api/health.json": {
            "get": {
                "summary": "Status",
                "responses": {
                    "200": {
                        "description": "Status, tijd en aantal artikelen.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Antwoord"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Meer dan 60 verzoeken per minuut; zie Retry-After."
                    }
                }
            }
        },
        "/feed.json": {
            "get": {
                "summary": "JSON Feed 1.1",
                "responses": {
                    "200": {
                        "description": "De 30 nieuwste artikelen met samenvatting.",
                        "content": {
                            "application/feed+json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/mcp": {
            "post": {
                "summary": "MCP-server (Streamable HTTP, stateless, JSON-RPC 2.0)",
                "description": "Methodes: initialize, ping, tools/list, tools/call. Alle tools zijn alleen lezen.",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "jsonrpc",
                                    "method"
                                ],
                                "properties": {
                                    "jsonrpc": {
                                        "const": "2.0"
                                    },
                                    "id": {
                                        "type": [
                                            "string",
                                            "integer"
                                        ]
                                    },
                                    "method": {
                                        "type": "string"
                                    },
                                    "params": {
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "JSON-RPC-antwoord",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "202": {
                        "description": "Notificatie ontvangen"
                    },
                    "429": {
                        "description": "Te veel verzoeken"
                    }
                }
            },
            "get": {
                "summary": "Geeft 405: gebruik POST.",
                "responses": {
                    "405": {
                        "description": "Alleen POST"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "Antwoord": {
                "type": "object",
                "required": [
                    "site",
                    "versie",
                    "bijgewerkt"
                ],
                "properties": {
                    "site": {
                        "type": "string"
                    },
                    "versie": {
                        "type": "integer"
                    },
                    "bijgewerkt": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    }
                }
            }
        }
    }
}