Wager API · API Governance Rules
Wager API API Rules
Spectral linting rules defining API design standards and conventions for Wager API.
8 Rules
error 4
warn 4
Rule Categories
wager
Rules
error
wager-api-key-header
Wager API requires X-API-Key header authentication
$.components.securitySchemes
error
wager-api-versioned-paths
All Wager API paths must be versioned with /v1/ prefix
$.paths
warn
wager-api-sport-parameter
Odds and data endpoints should document the sport parameter
$.paths[/v1/odds,/v1/props,/v1/futures,/v1/injuries,/v1/depth-charts][get].parameters
error
wager-api-operation-ids
All Wager API operations must have operationId
$.paths[*][get,post,put,patch,delete]
warn
wager-api-summaries-title-case
All Wager API operation summaries should use Title Case
$.paths[*][get,post,put,patch,delete]
warn
wager-api-response-envelope
Wager API list endpoints should use data envelope in responses
$.paths[*][get].responses[200].content.application/json.schema.properties
error
wager-api-https-only
Wager API servers must use HTTPS
$.servers[*].url
warn
wager-api-path-params-kebab
Path segments should use kebab-case
$.paths