Commodity Futures Trading Commission · API Governance Rules
Commodity Futures Trading Commission API Rules
Spectral linting rules defining API design standards and conventions for Commodity Futures Trading Commission.
6 Rules
error 4
warn 2
Rule Categories
cftc
Rules
error
cftc-cot-info-title
COT OpenAPI info.title must reference Commitments of Traders or CFTC
$.info.title
error
cftc-cot-server-defined
At least one server URL must be defined for the SODA endpoint
$.servers
error
cftc-cot-server-publicreporting
Server URL must point to publicreporting.cftc.gov
$.servers[*].url
warn
cftc-cot-tag-required
COT-related tags must be declared at the document level
$.tags[*].name
error
cftc-cot-operation-id-camelcase
Every operation must define an operationId using camelCase
$.paths.*[get,put,post,delete,patch].operationId
warn
cftc-cot-soda-resource-path
COT paths should resolve to a Socrata four-by-four .json resource path
$.paths