Smithsonian Institution · API Governance Rules
Smithsonian Institution API Rules
Spectral linting rules defining API design standards and conventions for Smithsonian Institution.
8 Rules
error 2
warn 6
Rule Categories
smithsonian
Rules
error
smithsonian-operation-ids
All operations must have an operationId in camelCase
$.paths[*][*]
warn
smithsonian-operation-tags
All operations must have at least one tag
$.paths[*][*]
warn
smithsonian-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
smithsonian-api-key-required
All operations must require an api_key query parameter
$.paths[*].get
warn
smithsonian-pagination-support
Search endpoints should support start/rows pagination
$.paths[*search*].get
warn
smithsonian-json-response
All successful responses should return application/json
$.paths[*][*].responses.200.content
warn
smithsonian-no-trailing-slashes
API paths must not have trailing slashes
$.paths
warn
smithsonian-error-401
All operations must document 401 Unauthorized response
$.paths[*][*].responses