{
  "openapi": "3.1.0",
  "info": {
    "title": "Permind Public Discovery API",
    "version": "1.0.0",
    "description": "Machine-readable description for Permind public API discovery endpoints. Internal, authenticated product, OAuth callback, and development-only endpoints are intentionally excluded."
  },
  "servers": [
    {
      "url": "https://permind.tw"
    }
  ],
  "paths": {
    "/.well-known/api-catalog": {
      "get": {
        "summary": "API catalog",
        "description": "Returns the RFC 9727 API catalog as an RFC 9264 Linkset JSON document.",
        "responses": {
          "200": {
            "description": "API catalog Linkset",
            "content": {
              "application/linkset+json": {
                "schema": {
                  "type": "object",
                  "required": ["linkset"],
                  "properties": {
                    "linkset": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "head": {
        "summary": "API catalog headers",
        "description": "Returns headers for API catalog discovery without a response body.",
        "responses": {
          "200": {
            "description": "API catalog headers"
          }
        }
      }
    },
    "/api/status": {
      "get": {
        "summary": "Service status",
        "description": "Returns a lightweight public health status response.",
        "responses": {
          "200": {
            "description": "Service is reachable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": ["status", "service", "timestamp"],
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": ["ok"]
                    },
                    "service": {
                      "type": "string",
                      "enum": ["permind"]
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
