University of Canterbury · API Governance Rules
University of Canterbury API Rules
Spectral linting rules defining API design standards and conventions for University of Canterbury.
8 Rules
error 4
warn 4
Rule Categories
uc
Rules
error
uc-figshare-info-title
API info must declare a title.
$.info
error
uc-figshare-info-version
API info must declare a version.
$.info
warn
uc-figshare-server-url
At least one server URL must be defined and point at the figshare v2 base.
$.servers[*]
warn
uc-figshare-operation-tags
Every operation should carry at least one tag (figshare groups by resource, e.g. articles, collections, projects).
$.paths[*][get,post,put,delete,patch]
error
uc-figshare-operation-responses
Every operation must define responses.
$.paths[*][get,post,put,delete,patch]
warn
uc-figshare-article-id-integer
Article identifiers are integers across the figshare model.
$.components.schemas.Article.properties.id
warn
uc-figshare-doi-present
Core scholarly objects (Article, Collection) should expose a DOI for citation.
$.components.schemas.Article.properties$.components.schemas.Collection.properties
error
uc-figshare-no-http-server
Servers must use HTTPS.
$.servers[*].url