Sportsbook API · API Governance Rules
Sportsbook API API Rules
Spectral linting rules defining API design standards and conventions for Sportsbook API.
9 Rules
error 5
warn 4
Rule Categories
sportsbook
Rules
error
sportsbook-api-operation-tags
All operations must have exactly one tag from the approved list.
$.paths[*][*]
error
sportsbook-api-v1-prefix
All paths must be prefixed with /v1/.
$.paths
error
sportsbook-api-operation-ids-camel-case
OperationIds must use camelCase.
$.paths[*][*].operationId
error
sportsbook-api-get-response-200
All GET operations must define a 200 response.
$.paths[*].get
error
sportsbook-api-rapidapi-auth
API must use X-RapidAPI-Key header authentication.
$.components.securitySchemes
warn
sportsbook-api-sport-param-enum
Sport query parameter should use enum values.
$.paths[*][*].parameters[?(@.name == 'sport')].schema
warn
sportsbook-api-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
warn
sportsbook-api-401-response
All operations should define a 401 Unauthorized response.
$.paths[*][*]
warn
sportsbook-api-429-rate-limit
Operations that may be rate-limited should document 429 response.
$.paths[*].get