University of Groningen · API Governance Rules
University of Groningen API Rules
Spectral linting rules defining API design standards and conventions for University of Groningen.
9 Rules
error 4
warn 5
Rule Categories
ug
Rules
error
ug-servers-institution-host
Server URLs must sit on a University of Groningen host — a vendor host means the contract is not the institution's.
$.servers[*].url
error
ug-servers-https
Server URLs must use HTTPS.
$.servers[*].url
warn
ug-info-contact
The contract must name a contact at the institution that operates it.
$.info
warn
ug-info-terms
The contract should point at the institution's published terms.
$.info
error
ug-operation-id
Every operation needs an operationId so agents and generators can address it.
$.paths[*][get,post,put,patch,delete]
error
ug-operation-tagged
Every operation must be tagged so the catalog can be split by resource.
$.paths[*][get,post,put,patch,delete]
warn
ug-academic-year-pattern
An academicYear path parameter must constrain itself to YYYY-YYYY; the backend 400s on anything else.
$.components.parameters.AcademicYear.schema
warn
ug-problem-media-type
Error responses must be served as application/problem+json, matching what the backend actually emits.
$.components.responses[*].content
warn
ug-gated-operation-documented
An operation that requires an institutional session must say so rather than appear callable.
$.paths[*][get].responses
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.