Spring Data · API Governance Rules
Spring Data API Rules
Spectral linting rules defining API design standards and conventions for Spring Data.
7 Rules
error 1
warn 4
info 2
Rule Categories
spring
Rules
warn
spring-data-hal-content-type
Spring Data REST endpoints should accept/produce application/hal+json
$.paths[*][*].responses[*].content
info
spring-data-pageable-parameters
Collection endpoints should support page, size, and sort query parameters
$.paths[*].get
error
spring-data-rest-operation-ids
All operations must have a unique operationId
$.paths[*][get,post,put,patch,delete]
warn
spring-data-rest-tags
Operations must include at least one tag using Title Case
$.paths[*][get,post,put,patch,delete]
warn
spring-data-no-trailing-slashes
API paths must not have trailing slashes
$.paths
info
spring-data-hateoas-links
Resource schemas should include _links property for HATEOAS compliance
$.components.schemas[*]
warn
spring-data-rest-summaries-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
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/spring-data-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.