Technical University of Denmark · API Governance Rules
Technical University of Denmark API Rules
Spectral linting rules defining API design standards and conventions for Technical University of Denmark.
7 Rules
error 1
warn 5
info 1
Rule Categories
dtu
Rules
warn
dtu-info-contact
API info object should declare a contact (Figshare Support).
$.info
warn
dtu-info-license
API info object should declare a license (Apache 2.0 for Figshare).
$.info
error
dtu-server-figshare-base
Server URL must point at the Figshare API v2 base.
$.servers[*].url
warn
dtu-get-only-public-read
DTU Data public catalog operations are read-only; only GET methods are expected on documented public paths.
$.paths[*]
warn
dtu-operation-success-response
Every operation should document a 200 success response.
$.paths[*][get]
warn
dtu-article-id-param-integer
The article_id path parameter should be an integer (Figshare ids are integers).
$.paths[*].*.parameters[?(@.name=='article_id')].schema
info
dtu-doi-prefix
DTU-minted DOIs use the 10.11583 prefix; example DOIs in schemas should be strings.
$.components.schemas.Article.properties.doi