University of Bristol · API Governance Rules
University of Bristol API Rules
Spectral linting rules defining API design standards and conventions for University of Bristol.
6 Rules
warn 4
info 2
Rule Categories
uob
Rules
warn
uob-pure-server-url
Servers should point at the Bristol Research Portal Pure API base path.
$.servers[*].url
warn
uob-pure-apikey-security
Pure API operations are protected by the api-key header security scheme.
$.components.securitySchemes
info
uob-pagination-params
List (collection) GET operations should expose size and offset paging parameters.
$.paths[*].get.parameters
warn
uob-list-result-items
List result schemas should expose count, pageInformation and items.
$.components.schemas[?(@property.match(/ListResult$/))].properties
info
uob-uuid-format
Resource uuid properties should declare uuid string format.
$.components.schemas[*].properties.uuid
warn
uob-operation-id
Every operation should carry an operationId for client generation.
$.paths[*][get,put,post,delete]