{
  "openapi": "3.1.0",
  "info": {
    "title": "Allen Bargi Public Profile API",
    "description": "Read-only access to the public information published on allen.bargi.org.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://allen.bargi.org"
    }
  ],
  "paths": {
    "/api/profile": {
      "get": {
        "operationId": "getProfile",
        "summary": "Read Allen Bargi's public profile",
        "description": "Returns the same public profile information published on the homepage. No authentication is required.",
        "responses": {
          "200": {
            "description": "Public profile",
            "content": {
              "application/ld+json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicProfile"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PublicProfile": {
        "type": "object",
        "required": [
          "@context",
          "@type",
          "name",
          "url",
          "description",
          "status",
          "dateModified"
        ],
        "properties": {
          "@context": {
            "type": "string",
            "format": "uri"
          },
          "@type": {
            "type": "string",
            "const": "Person"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "dateModified": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}
