University of California, Davis · API Governance Rules
University of California, Davis API Rules
Spectral linting rules defining API design standards and conventions for University of California, Davis.
6 Rules
error 2
warn 4
Rule Categories
peaks
Rules
error
peaks-info-title
API info object must carry a title.
$.info
warn
peaks-info-contact
PEAKS publishes an Application Support contact; require a contact object.
$.info
warn
peaks-apikey-security
PEAKS authenticates via an X-Auth-Token API key header; an apiKey security scheme should be defined.
$.components.securitySchemes
warn
peaks-paths-team-scoped
PEAKS resource paths are team-scoped and must include the {teamName} path parameter.
$.paths[?(@property.match(/^\/api\//))]~
warn
peaks-operation-tags
Every operation should be tagged to its resource group (access, keys, equipment, people, spaces, workstations, documents).
$.paths[*][get,post]
error
peaks-operation-responses
Every operation must declare responses.
$.paths[*][get,post]