Humboldt-Universität zu Berlin · API Governance Rules

Humboldt-Universität zu Berlin API Rules

Spectral linting rules defining API design standards and conventions for Humboldt-Universität zu Berlin.

7 Rules error 2 warn 3 info 2
View Rules File View on GitHub

Rule Categories

edoc

Rules

error
edoc-info-title-present
API document must declare a title.
$.info
error
edoc-info-version-present
API document must declare a version.
$.info
warn
edoc-server-uses-edoc-base
Server URL should point at the edoc-Server DSpace REST base.
$.servers[*].url
warn
edoc-hal-content-type
DSpace responses are HAL; 200 responses should offer application/hal+json.
$.paths[*].get.responses['200'].content
warn
edoc-operation-id-present
Every operation should define an operationId.
$.paths[*][get,post,put,delete,patch]
info
edoc-uuid-path-param-format
UUID path parameters should declare format uuid.
$.components.parameters.uuid.schema
info
edoc-metadata-map-pattern
Repository objects should carry a metadata map keyed by qualified Dublin Core fields.
$.components.schemas[?(@property.match(/Community|Collection|Item/))].properties

Spectral Ruleset

Raw ↑
extends: []
formats:
  - oas3
documentationUrl: https://edoc-info.hu-berlin.de/en
rules:
  edoc-info-title-present:
    description: API document must declare a title.
    severity: error
    given: $.info
    then:
      field: title
      function: truthy
  edoc-info-version-present:
    description: API document must declare a version.
    severity: error
    given: $.info
    then:
      field: version
      function: truthy
  edoc-server-uses-edoc-base:
    description: Server URL should point at the edoc-Server DSpace REST base.
    severity: warn
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: "edoc\\.hu-berlin\\.de/server/api"
  edoc-hal-content-type:
    description: DSpace responses are HAL; 200 responses should offer application/hal+json.
    severity: warn
    given: $.paths[*].get.responses['200'].content
    then:
      field: application/hal+json
      function: truthy
  edoc-operation-id-present:
    description: Every operation should define an operationId.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: operationId
      function: truthy
  edoc-uuid-path-param-format:
    description: UUID path parameters should declare format uuid.
    severity: info
    given: $.components.parameters.uuid.schema
    then:
      field: format
      function: truthy
  edoc-metadata-map-pattern:
    description: Repository objects should carry a metadata map keyed by qualified Dublin Core fields.
    severity: info
    given: $.components.schemas[?(@property.match(/Community|Collection|Item/))].properties
    then:
      field: metadata
      function: truthy

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/humboldt-universitat-zu-berlin-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.