Cardiff University · API Governance Rules
Cardiff University API Rules
Spectral linting rules defining API design standards and conventions for Cardiff University.
5 Rules
error 1
warn 4
Rule Categories
cardiff
Rules
warn
cardiff-info-contact-email
API info should advertise the Cardiff integration contact email.
$.info
error
cardiff-https-servers
Cardiff APIs are served over HTTPS via the api.data.cardiff.ac.uk gateway.
$.servers[*].url
warn
cardiff-oauth2-security
Operations should be protected by the OAuth2 security scheme (named "default").
$.components.securitySchemes
warn
cardiff-response-envelope
Successful JSON responses should use the standard data + meta envelope.
$.paths[*][get].responses.200.content.application/json.schema.properties
warn
cardiff-operation-summary
Every operation should have a human-readable summary.
$.paths[*][get,post,put,delete]