University of Lausanne · API Governance Rules
University of Lausanne API Rules
Spectral linting rules defining API design standards and conventions for University of Lausanne.
5 Rules
error 1
warn 3
info 1
Rule Categories
unil
Rules
warn
unil-info-contact
API info object should declare a contact pointing back to UNIL.
$.info
error
unil-https-servers
All servers must use HTTPS (UNIL APIs are HTTPS-only).
$.servers[*].url
warn
unil-operation-id
Every operation should declare an operationId.
$.paths[*][get,post,put,patch,delete]
info
unil-pagination-params
List/query operations should expose pagination parameters (SPICA uses page/per_page; DSpace uses page/size).
$.paths[*].get.parameters
warn
unil-json-responses
Successful responses should be served as application/json.
$.paths[*][get].responses.200.content