Democracy Works · API Governance Rules
Democracy Works — elections api rules
Spectral linting rules defining API design standards and conventions for Democracy Works.
6 Rules
error 1
warn 5
Authorship not recorded
No authorship marker is recorded for this file. It is not presented as the provider's; it was most likely written by an API Evangelist pass before outputs were stamped.
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[*][*]
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.