University of Basel · API Governance Rules
University of Basel API Rules
Spectral linting rules defining API design standards and conventions for University of Basel.
7 Rules
error 2
warn 3
info 2
Rule Categories
basel
Rules
warn
basel-info-contact
API info should declare a contact (DSP-API declares DaSCH as contact).
$.info
error
basel-info-version-present
API info must declare a version (DSP-API uses a vNN.NN.NN scheme).
$.info
error
basel-server-https
All servers must use HTTPS (DSP-API is served over TLS only).
$.servers[*].url
warn
basel-operation-tags
Every operation should be tagged (DSP-API groups by Admin/Management/API v2/API v3/Ontology Mappings).
$.paths[*][get,put,post,delete,patch]
warn
basel-operation-description
Operations should carry a human description (DSP-API documents each endpoint).
$.paths[*][get,put,post,delete,patch]
info
basel-known-tags
Tags should come from the DSP-API tag vocabulary.
$.paths[*][get,put,post,delete,patch].tags[*]
info
basel-error-response
Operations should document at least one non-2xx response (DSP-API returns typed error bodies).
$.paths[*][get,put,post,delete,patch].responses