{
  "openapi": "3.1.0",
  "info": {
    "title": "n10e public property-price API",
    "version": "1.0.0",
    "description": "Read-only aggregate real-estate price data for Slovenia and selected Croatian coastal areas."
  },
  "servers": [
    {
      "url": "https://n10e.polajzer.si"
    }
  ],
  "paths": {
    "/api/prices": {
      "get": {
        "operationId": "getPropertyPrices",
        "summary": "Get property-price statistics for a place",
        "parameters": [
          {
            "name": "place",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Price statistics",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Unknown place"
          }
        }
      }
    },
    "/api/prices/places": {
      "get": {
        "operationId": "listPropertyPriceAreas",
        "summary": "List covered towns and regions",
        "responses": {
          "200": {
            "description": "Covered areas",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/prices/ranking": {
      "get": {
        "operationId": "propertyPriceRanking",
        "summary": "Rank Slovenian municipalities by apartment median EUR/m2",
        "responses": {
          "200": {
            "description": "Ranking",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}