{
  "openapi": "3.1.0",
  "info": {
    "title": "Systema Constructum public read API",
    "version": "1.0.0",
    "description": "Read-only projections of the ontology and append-only record. The live custom schema at /api/schema describes the current application contract; the folded record remains authoritative for game state.",
    "license": {
      "name": "CC0 1.0 Universal — operator-held data rights and explicitly offered contributor expression only",
      "url": "https://systema.quartermachines.website/data-license"
    }
  },
  "servers": [
    {
      "url": "https://systema.quartermachines.website"
    }
  ],
  "paths": {
    "/api/entries": {
      "get": {
        "summary": "List entries",
        "description": "Filter with status, limit, and before. Use status=ACCEPTED for the public ontology.",
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/entries/{id}": {
      "get": {
        "summary": "Read one entry",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Entry, definitions, relations, challenges, and contributions"
          },
          "404": {
            "description": "Unknown entry"
          }
        }
      }
    },
    "/api/names": {
      "get": {
        "summary": "List canonical names and aliases",
        "description": "List canonical names and aliases",
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/word/{word}": {
      "get": {
        "summary": "Resolve a word to its concept facets",
        "parameters": [
          {
            "name": "word",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Word facets and collisions"
          },
          "404": {
            "description": "Unknown word"
          }
        }
      }
    },
    "/api/graph": {
      "get": {
        "summary": "Download the accepted ontology graph",
        "description": "Download the accepted ontology graph",
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/laws": {
      "get": {
        "summary": "Read the current laws",
        "description": "Read the current laws",
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/accepted": {
      "get": {
        "summary": "Read the latest accepted acts",
        "description": "Read the latest accepted acts",
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/api/act/{id}": {
      "get": {
        "summary": "Read a complete act record",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Filing and judgment record"
          },
          "404": {
            "description": "Unknown act"
          }
        }
      }
    },
    "/api/schema": {
      "get": {
        "summary": "Read the detailed live Systema schema",
        "description": "Read the detailed live Systema schema",
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/log/manifest.json": {
      "get": {
        "summary": "Begin independent verification of the append-only record",
        "description": "Begin independent verification of the append-only record",
        "responses": {
          "200": {
            "description": "Successful public read",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    }
  }
}
