University of Manchester · API Governance Rules
University of Manchester API Rules
Spectral linting rules defining API design standards and conventions for University of Manchester.
7 Rules
error 2
warn 3
info 2
Rule Categories
pure
Rules
error
pure-info-title-present
API must declare an info.title.
$.info
error
pure-info-version-present
API must declare an info.version (Pure uses a build version such as 5.35.2-2).
$.info
warn
pure-api-key-security-scheme
Pure authenticates with an apiKey security scheme named "api-key".
$.components.securitySchemes
warn
pure-server-relative-ws-api
Pure serves the API under the /ws/api base path.
$.servers[*]
warn
pure-operations-have-tags
Every operation should be tagged by resource (activities, persons, research-outputs, projects, ...).
$.paths[*][get,post,put,delete]
info
pure-collection-paths-lowercase-hyphen
Pure collection paths use lowercase hyphenated resource names (e.g. /research-outputs).
$.paths[*]~
info
pure-uuid-is-primary-identity
Object schemas should expose uuid as the primary identity field.
$.components.schemas[?(@.properties && @.properties.pureId)]