University of Bonn · API Governance Rules
University of Bonn API Rules
Spectral linting rules defining API design standards and conventions for University of Bonn.
6 Rules
error 1
warn 4
info 1
Rule Categories
bonndata
Rules
warn
bonndata-info-title
API title should reference bonndata / Dataverse.
$.info.title
error
bonndata-server-base
Servers should point at the bonndata Native API base under /api.
$.servers[*].url
warn
bonndata-response-envelope
JSON responses follow the Dataverse envelope with a top-level "status" property (OK/ERROR).
$.components.schemas.ApiEnvelope.properties
warn
bonndata-search-paginated
The /search operation must expose per_page and start pagination params.
$.paths['/search'].get.parameters[*].name
warn
bonndata-operation-id
Every operation should carry an operationId (matches upstream Dataverse).
$.paths[*][get,post,put,delete]
info
bonndata-persistent-id
Datasets are addressable by DOI persistent identifier; the dataset retrieval operation should document the persistentId query parameter.
$.paths['/datasets/{id}'].get.parameters[*].name