{
  "openapi": "3.1.0",
  "info": {
    "title": "Short Term Rental (STR) - Single Digital Entry Point (SDEP) - Common",
    "description": "Version-independent endpoints for health monitoring and basic operations.",
    "contact": {
      "name": "Nationaal Coordinator SDEP",
      "url": "https://minvro.nl/",
      "email": "nationaalcoordinatorsdep@minbzk.nl"
    },
    "version": "1.10.0"
  },
  "paths": {
    "/ping": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Ping application (authenticated)",
        "description": "Verify if API is reachable (requires authentication).",
        "operationId": "ping",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - missing or invalid token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorDetail": {
        "properties": {
          "msg": {
            "type": "string",
            "title": "Msg",
            "description": "Human-readable error message"
          },
          "type": {
            "type": "string",
            "title": "Type",
            "description": "Error type identifier"
          },
          "loc": {
            "anyOf": [
              {
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "integer"
                    }
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Loc",
            "description": "Location of the error (e.g. ['body', 'fieldName'])"
          }
        },
        "type": "object",
        "required": [
          "msg",
          "type"
        ],
        "title": "Error.Detail",
        "description": "Detail of a single error."
      },
      "ErrorResponse": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ErrorDetail"
            },
            "type": "array",
            "title": "Detail",
            "description": "List of error details"
          }
        },
        "type": "object",
        "required": [
          "detail"
        ],
        "title": "Error.Response",
        "description": "Standardized error response format."
      },
      "Status": {
        "properties": {
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status",
            "description": "Status message",
            "examples": [
              "ok"
            ]
          }
        },
        "type": "object",
        "title": "Health.Status",
        "description": "Status response schema"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "servers": [
    {
      "url": "/api"
    }
  ]
}