{
  "openapi": "3.1.0",
  "info": {
    "title": "CASRAI Dictionary API",
    "version": "v2026.1",
    "description": "Read-only bulk export endpoints for the CASRAI Dictionary. CC-BY 4.0.",
    "license": {
      "name": "CC-BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    },
    "contact": {
      "name": "CASRAI",
      "url": "https://casrai.org"
    }
  },
  "servers": [
    {
      "url": "https://casrai.org",
      "description": "Production"
    }
  ],
  "paths": {
    "/api/dictionary/v2026.1.jsonld": {
      "get": {
        "summary": "Download dictionary as JSON-LD",
        "description": "Bulk export of the CASRAI Dictionary vv2026.1 in JSON-LD format.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/ld+json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed"
          }
        }
      }
    },
    "/api/dictionary/v2026.1.json": {
      "get": {
        "summary": "Download dictionary as JSON",
        "description": "Bulk export of the CASRAI Dictionary vv2026.1 in JSON format.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed"
          }
        }
      }
    },
    "/api/dictionary/v2026.1.csv": {
      "get": {
        "summary": "Download dictionary as CSV",
        "description": "Bulk export of the CASRAI Dictionary vv2026.1 in CSV format.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed"
          }
        }
      }
    },
    "/api/dictionary/v2026.1.xlsx": {
      "get": {
        "summary": "Download dictionary as XLSX",
        "description": "Bulk export of the CASRAI Dictionary vv2026.1 in XLSX format.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed"
          }
        }
      }
    },
    "/api/dictionary/v2026.1.owl": {
      "get": {
        "summary": "Download dictionary as OWL",
        "description": "Bulk export of the CASRAI Dictionary vv2026.1 in OWL format.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/rdf+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed"
          }
        }
      }
    },
    "/api/dictionary/v2026.1.ttl": {
      "get": {
        "summary": "Download dictionary as Turtle",
        "description": "Bulk export of the CASRAI Dictionary vv2026.1 in Turtle format.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/turtle": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed"
          }
        }
      }
    },
    "/api/dictionary/v2026.1.bib": {
      "get": {
        "summary": "Download dictionary as BibTeX",
        "description": "Bulk export of the CASRAI Dictionary vv2026.1 in BibTeX format.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/x-bibtex": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed"
          }
        }
      }
    },
    "/api/dictionary/manifest.json": {
      "get": {
        "summary": "Download dictionary as Manifest",
        "description": "Bulk export of the CASRAI Dictionary vv2026.1 in Manifest format.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DictionaryEntry": {
        "type": "object",
        "required": [
          "type",
          "slug",
          "name"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "domain",
              "credit_role",
              "dictionary_term",
              "picklist",
              "object_template"
            ]
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "definition": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "track": {
            "type": "string"
          },
          "source_url": {
            "type": "string",
            "format": "uri"
          },
          "niso_uri": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    }
  }
}