openapi: 3.1.0
info:
  title: DwellDocket Public Preview API
  version: 0.1.0
  description: >
    Read-only access to current published property-law records. Missing data does
    not mean a jurisdiction has no rule. Informational only; not legal advice.
servers:
  - url: https://dwelldocket.com/api/v1
paths:
  /health:
    get:
      summary: Service and data-store health
      responses:
        "200":
          description: Healthy preview service
  /jurisdictions:
    get:
      summary: List published jurisdictions and topics
      responses:
        "200":
          description: Published jurisdiction list
  /rules:
    get:
      summary: List current published rules
      parameters:
        - in: query
          name: jurisdiction
          schema:
            type: string
            pattern: "^[A-Z]{2}$"
        - in: query
          name: topic
          schema:
            type: string
      responses:
        "200":
          description: Current published rule records
        "400":
          description: Invalid query
