University of Auckland · API Governance Rules
University of Auckland API Rules
Spectral linting rules defining API design standards and conventions for University of Auckland.
7 Rules
error 2
warn 3
info 2
Rule Categories
uoa
Rules
error
uoa-info-title-present
API description must declare an info.title.
$.info
error
uoa-info-version-present
API description must declare an info.version.
$.info
warn
uoa-server-figshare-v2
At least one server should target the Figshare v2 base URL.
$.servers[*].url
warn
uoa-operation-id-present
Every operation should carry an operationId (Figshare uses snake_case operationIds).
$.paths[*][get,post,put,delete,patch]
warn
uoa-operation-tags
Operations should be tagged (articles, collections, projects, etc.).
$.paths[*][get,post,put,delete,patch]
info
uoa-snake-case-operation-id
operationId values follow Figshare snake_case convention.
$.paths[*][get,post,put,delete,patch].operationId
info
uoa-pagination-params
Listing operations should expose page / page_size pagination parameters.
$.paths[/articles].get.parameters[*].name