ETH Zurich – Swiss Federal Institute of Technology · API Governance Rules
ETH Zurich – Swiss Federal Institute of Technology API Rules
Spectral linting rules defining API design standards and conventions for ETH Zurich – Swiss Federal Institute of Technology.
5 Rules
error 1
warn 3
info 1
Rule Categories
eth
Rules
error
eth-info-title-required
API must declare an info.title.
$.info
warn
eth-server-on-library-host
Production server URL should be on the api.library.ethz.ch host.
$.servers[*].url
warn
eth-apikey-query-security-scheme
The platform authenticates with an apiKey security scheme passed in the query string as "apikey". Specs should define this scheme.
$.components.securitySchemes[*]
warn
eth-operations-have-200-response
GET operations should document a 200 response.
$.paths[*].get.responses
info
eth-operation-has-summary-or-description
Each operation should have a summary or description.
$.paths[*][get,post,put,delete]