US Department of Defense · API Governance Rules
US Department of Defense API Rules
Spectral linting rules defining API design standards and conventions for US Department of Defense.
10 Rules
error 2
warn 6
info 2
Rule Categories
cwms
Rules
warn
cwms-operation-ids-camel-case
Operation IDs must use camelCase naming
$.paths[*][*].operationId
error
cwms-operations-have-summaries
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
cwms-operations-have-tags
All operations should be tagged for grouping
$.paths[*][get,post,put,patch,delete]
info
cwms-office-param-described
Office parameter should have a description explaining valid values
$.paths[*][*].parameters[?(@.name == 'office')]
warn
cwms-response-200-defined
All GET operations should define a 200 response
$.paths[*][get]
error
cwms-servers-defined
API must define servers for base URL
$
warn
cwms-info-contact-present
API should have contact information
$.info
warn
cwms-tags-title-case
Tags must use Title Case naming
$.tags[*].name
info
cwms-time-params-iso8601
Time parameters should specify ISO 8601 format
$.paths[*][*].parameters[?(@.name == 'begin' || @.name == 'end')]
warn
cwms-path-lowercase
API paths should use lowercase
$.paths
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/usace-cwms-data-api-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.