USDA Agricultural Research Service (ARS) · API Governance Rules
USDA Agricultural Research Service (ARS) API Rules
Spectral linting rules defining API design standards and conventions for USDA Agricultural Research Service (ARS).
7 Rules
error 2
warn 3
info 2
Rule Categories
usda
Rules
error
usda-ars-operation-summary
All operations must have a summary
$.paths[*][*]
warn
usda-ars-operation-tags
All operations must have tags
$.paths[*][*]
error
usda-ars-get-200-response
GET operations must define a 200 response
$.paths[*].get
info
usda-ars-api-key-authentication
FoodData Central API requires api_key parameter
$.paths[*].get.parameters[*]
warn
usda-ars-path-params-documented
Path parameters must have descriptions
$.paths[*][*].parameters[?(@.in == 'path')]
info
usda-ars-license-info
APIs should document the CC0 license
$.info
warn
usda-ars-contact-info
APIs should have contact information
$.info