Toornament · API Governance Rules
Toornament API Rules
Spectral linting rules defining API design standards and conventions for Toornament.
9 Rules
error 3
warn 5
Rule Categories
toornament
Rules
warn
toornament-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
error
toornament-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
toornament-operation-description-required
All operations must have a description
$.paths[*][get,post,put,patch,delete]
error
toornament-api-key-required
API key security should be defined
$.components.securitySchemes
error
toornament-oauth2-required
OAuth2 security should be defined for write operations
$.components.securitySchemes
warn
toornament-pagination-range-header
List endpoints (GET /tournaments etc.) should document Range header
$.paths[*].get.parameters[?(@.name == 'Range')]
hint
toornament-list-response-206
Paginated list endpoints should return 206 Partial Content
$.paths[*].get.responses
warn
toornament-path-param-description
Path parameters should have descriptions
$.paths[*][*].parameters[?(@.in=='path')]
warn
toornament-delete-no-content
DELETE operations should return 204 No Content
$.paths[*].delete.responses
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/toornament-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.