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
View Rules File View on GitHub

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

Raw ↑
# authorship: written by API Evangelist as a Spectral ruleset for the University of
# Groningen's own Ocasys course-catalog contract. It encodes conventions MEASURED from
# the live API on 2026-08-30 — bilingual title objects, YYYY-YYYY academic-year paths,
# RFC 9457 problem bodies. It is not a University of Groningen publication.
generated: '2026-08-30'
method: derived
source: openapi/university-of-groningen-course-catalog-api-openapi.yml
x-operator: institution
formats:
  - oas3
rules:
  ug-servers-institution-host:
    description: Server URLs must sit on a University of Groningen host — a vendor host means the contract is not the institution's.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://[a-z0-9.-]*rug\.nl(/|$)'
  ug-servers-https:
    description: Server URLs must use HTTPS.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://'
  ug-info-contact:
    description: The contract must name a contact at the institution that operates it.
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy
  ug-info-terms:
    description: The contract should point at the institution's published terms.
    severity: warn
    given: $.info
    then:
      field: termsOfService
      function: truthy
  ug-operation-id:
    description: Every operation needs an operationId so agents and generators can address it.
    severity: error
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: operationId
      function: truthy
  ug-operation-tagged:
    description: Every operation must be tagged so the catalog can be split by resource.
    severity: error
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: tags
      function: truthy
  ug-academic-year-pattern:
    description: An academicYear path parameter must constrain itself to YYYY-YYYY; the backend 400s on anything else.
    severity: warn
    given: $.components.parameters.AcademicYear.schema
    then:
      field: pattern
      function: truthy
  ug-problem-media-type:
    description: Error responses must be served as application/problem+json, matching what the backend actually emits.
    severity: warn
    given: $.components.responses[*].content
    then:
      field: application/problem+json
      function: truthy
  ug-gated-operation-documented:
    description: An operation that requires an institutional session must say so rather than appear callable.
    severity: warn
    given: $.paths[*][get].responses
    then:
      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/university-of-groningen-course-catalog-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.