{
  "openapi": "3.1.0",
  "info": {
    "title": "Basily Medical-Legal Consulting Public Information API",
    "version": "1.0.0",
    "description": "Public, read-only information about consulting services, physician qualifications, engagement process, resources, and contact details. This API accepts no records, PHI, case data, credentials, or private submissions."
  },
  "servers": [
    {
      "url": "https://basilymedlegal.com"
    }
  ],
  "paths": {
    "/api/v1/site": {
      "get": {
        "operationId": "getPublicSiteInformation",
        "summary": "Get public consulting information",
        "description": "Returns public business, services, qualifications, engagement, resource, and contact information.",
        "responses": {
          "200": {
            "description": "Public site information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteInformation"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "headPublicSiteInformation",
        "summary": "Check public site information availability",
        "responses": {
          "200": {
            "description": "Endpoint is available"
          }
        }
      }
    },
    "/api/status": {
      "get": {
        "operationId": "getApiStatus",
        "summary": "Get basic service health",
        "responses": {
          "200": {
            "description": "Service is available",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "headApiStatus",
        "summary": "Check service health endpoint availability",
        "responses": {
          "200": {
            "description": "Endpoint is available"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "SiteInformation": {
        "type": "object",
        "required": [
          "schema_version",
          "company",
          "physician",
          "services",
          "clinical_review_focus",
          "engagement_process",
          "engagement_terms",
          "contact",
          "public_resources",
          "secure_transfer_notice",
          "disclaimers"
        ],
        "properties": {
          "schema_version": {
            "type": "string"
          },
          "company": {
            "type": "object"
          },
          "physician": {
            "type": "object"
          },
          "services": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "clinical_review_focus": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "engagement_process": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "engagement_terms": {
            "type": "object"
          },
          "contact": {
            "type": "object"
          },
          "public_resources": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "secure_transfer_notice": {
            "type": "string"
          },
          "disclaimers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "updated": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Status": {
        "type": "object",
        "required": [
          "status",
          "service",
          "scope",
          "version"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "ok"
          },
          "service": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  }
}
