{"openapi": "3.0.3", "info": {"title": "Basisregistratie Adressen en Gebouwen \u00b7 voorbeeld-API", "version": "1.0", "description": "Adressen, panden en verblijfsobjecten als basis voor betrouwbare locatiegegevens. De API bevat openbare voorbeeldgegevens."}, "servers": [{"url": "https://nosse.nl"}], "security": [], "paths": {"/api/bag/panden/": {"get": {"tags": ["BAG"], "operationId": "bagList", "summary": "Lijst ophalen", "parameters": [{"name": "limit", "in": "query", "description": "Maximaal aantal records per pagina.", "schema": {"type": "integer", "minimum": 1, "maximum": 100, "default": 20}}, {"name": "offset", "in": "query", "description": "Aantal over te slaan records.", "schema": {"type": "integer", "minimum": 0, "default": 0}}], "responses": {"200": {"description": "Pagina met resultaten.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BAGPage"}, "example": {"data": [{"id": "BAG-000123", "bouwjaar": 1982}], "pagination": {"limit": 20, "offset": 0, "total": 1}}}}}, "400": {"description": "Ongeldige paginering.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": "Ongeldige paginering"}}}}}}}, "/api/bag/panden/{id}/": {"get": {"tags": ["BAG"], "operationId": "bagDetail", "summary": "E\u00e9n record ophalen", "parameters": [{"name": "id", "in": "path", "required": true, "description": "Unieke identificatie van het record.", "schema": {"type": "string"}, "example": "BAG-000123"}], "responses": {"200": {"description": "Gevraagd record.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BAGRecord"}, "example": {"id": "BAG-000123", "bouwjaar": 1982}}}}, "404": {"description": "Onbekend record.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": "Onbekend record"}}}}}}}}, "components": {"schemas": {"BAGRecord": {"type": "object", "required": ["id", "bouwjaar"], "properties": {"id": {"type": "string", "description": "Unieke identificatie van het record.", "example": "BAG-000123"}, "bouwjaar": {"type": "integer", "description": "Jaar waarin het pand is gebouwd.", "example": 1982}}}, "BAGPage": {"type": "object", "required": ["data", "pagination"], "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/BAGRecord"}}, "pagination": {"$ref": "#/components/schemas/Pagination"}}}, "Pagination": {"type": "object", "required": ["limit", "offset", "total"], "properties": {"limit": {"type": "integer", "example": 20}, "offset": {"type": "integer", "example": 0}, "total": {"type": "integer", "example": 1}}}, "Error": {"type": "object", "required": ["error"], "properties": {"error": {"type": "string"}}}}}}