The Bureau of Economic Analysis · API Governance Rules
The Bureau of Economic Analysis API Rules
Spectral linting rules defining API design standards and conventions for The Bureau of Economic Analysis.
10 Rules
error 4
warn 6
Rule Categories
bea
Rules
error
bea-operation-must-have-userid-param
All BEA API operations must include a UserID query parameter for authentication.
$.paths[*][get].parameters[*]
error
bea-operation-must-have-method-param
All BEA API GET operations must include a 'method' query parameter specifying the API method to invoke.
$.paths[*][get]
warn
bea-result-format-enum
ResultFormat parameter must only accept JSON or XML values.
$.paths[*][get].parameters[?(@.name == 'ResultFormat')].schema
warn
bea-operations-must-have-tags
All operations must be tagged to organize by domain (Metadata, National Accounts, Regional, Industry, International).
$.paths[*][get]
warn
bea-operations-must-have-summary
All operations must have a summary using Title Case.
$.paths[*][get]
error
bea-responses-must-include-200
All BEA API operations must define a 200 success response.
$.paths[*][get].responses
warn
bea-responses-must-include-400
All BEA API operations should define a 400 error response for invalid request parameters.
$.paths[*][get].responses
error
bea-userid-must-be-required
The UserID parameter must be marked as required on all endpoints.
$.paths[*][get].parameters[?(@.name == 'UserID')]
warn
bea-parameters-must-have-descriptions
All parameters must have descriptions to aid API consumers.
$.paths[*][get].parameters[*]
warn
bea-info-must-have-contact
The API info object should include contact information for developer support.
$.info