{
  "openapi": "3.1.0",
  "info": {
    "title": "kapadiya.net Public Content API",
    "version": "1.0.0",
    "description": "Read-only profile, project, post, and service-status data."
  },
  "servers": [
    {
      "url": "https://kapadiya.net"
    }
  ],
  "paths": {
    "/api/profile.json": {
      "get": {
        "operationId": "getProfile",
        "summary": "Get the public profile and selected projects",
        "responses": {
          "200": {
            "description": "Public profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/posts.json": {
      "get": {
        "operationId": "listPosts",
        "summary": "List published posts",
        "responses": {
          "200": {
            "description": "Published posts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/status": {
      "get": {
        "operationId": "getStatus",
        "summary": "Check API availability",
        "responses": {
          "200": {
            "description": "Service status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ProfileResponse": {
        "type": "object",
        "additionalProperties": true
      },
      "PostsResponse": {
        "type": "object",
        "required": [
          "version",
          "posts"
        ],
        "properties": {
          "version": {
            "type": "string"
          },
          "posts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "StatusResponse": {
        "type": "object",
        "required": [
          "status",
          "api"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "ok"
          },
          "api": {
            "type": "string",
            "const": "available"
          }
        }
      }
    }
  }
}
