Newcastle University · API Governance Rules
Newcastle University API Rules
Spectral linting rules defining API design standards and conventions for Newcastle University.
7 Rules
error 1
warn 4
info 2
Rule Categories
newcastle
Rules
warn
newcastle-info-contact
API info object should provide a contact for the Urban Observatory.
$.info
warn
newcastle-info-description
API info object should have a description.
$.info
error
newcastle-servers-https
Urban Observatory servers must be served over HTTPS.
$.servers[*].url
warn
newcastle-operation-operationid
Every operation should declare an operationId (controller.method pattern).
$.paths[*][get,post,put,delete,patch]
warn
newcastle-operation-tags
Operations should be tagged with one of Entity, Feed, Timeseries.
$.paths[*][get,post,put,delete,patch]
info
newcastle-pagination-params
Collection endpoints should accept page and pageSize query parameters.
$.paths[/api/v2.0a/sensors/entity].get.parameters[*].name
info
newcastle-id-format-uuid
Identifier fields ending in Id should be typed as string (UUID).
$.components.schemas[*].properties[?(@property.match(/Id$/))]