US Army Corps of Engineers · API Governance Rules
US Army Corps of Engineers API Rules
Spectral linting rules defining API design standards and conventions for US Army Corps of Engineers.
8 Rules
error 2
warn 5
info 1
Rule Categories
usace
Rules
warn
usace-operations-have-tags
All USACE CWMS Data API operations must have at least one tag for grouping
$.paths[*][get,post,put,patch,delete]
warn
usace-operation-ids-kebab-case
Operation IDs should use camelCase as per USACE API conventions
$.paths[*][get,post,put,patch,delete].operationId
warn
usace-parameters-have-descriptions
All query parameters should have descriptions for CWMS API usability
$.paths[*][*].parameters[?(@.in == 'query')]
info
usace-pagination-page-size
CWMS Data API uses page-size parameter for pagination
$.paths[*][get].parameters[*]
error
usace-response-200-defined
All GET operations must define a 200 response
$.paths[*][get]
warn
usace-error-schema-defined
Error responses should reference the Error schema
$.paths[*][*].responses[?(@property >= '400')]
warn
usace-no-trailing-slash
API paths should not have trailing slashes
$.paths
error
usace-server-url-https
USACE API servers must use HTTPS
$.servers[*].url