Democracy Works · API Governance Rules
Democracy Works API Rules
Spectral linting rules defining API design standards and conventions for Democracy Works.
6 Rules
error 1
warn 5
Rule Categories
democracy
Rules
warn
democracy-works-info-contact
API info should include a contact for Democracy Works.
$.info
warn
democracy-works-base-url
Servers should reference api.democracy.works.
$.servers[*].url
error
democracy-works-apikey-auth
API should declare X-API-Key authentication.
$.components.securitySchemes
warn
democracy-works-elections-resource
API should expose /elections as a primary resource.
$.paths
warn
democracy-works-authorities-resource
API should expose /authorities as a primary resource.
$.paths
warn
democracy-works-operation-tags
Operations should be tagged Elections, Authorities, etc.
$.paths[*][*]