Spring Security · API Governance Rules
Spring Security API Rules
Spectral linting rules defining API design standards and conventions for Spring Security.
7 Rules
error 3
warn 3
info 1
Rule Categories
spring
Rules
error
spring-security-operation-id
All operations must have operationId
$.paths[*][get,post,put,patch,delete]
warn
spring-security-tags-required
All operations must have tags
$.paths[*][get,post,put,patch,delete]
warn
spring-security-summary-title-case
Summaries must use Title Case
$.paths[*][*].summary
warn
spring-security-oauth2-error-responses
OAuth2 token endpoints must define error response schemas
$.paths[/oauth2/token,/oauth2/introspect].post
error
spring-security-security-schemes
API should define security schemes
$.components
info
spring-security-bearer-format
Bearer auth scheme should specify bearerFormat
$.components.securitySchemes[*][?(@.scheme == 'bearer')]
error
spring-security-sensitive-endpoints-documented
Sensitive OAuth2 endpoints must have descriptions
$.paths[/oauth2/token,/oauth2/introspect,/oauth2/revoke,/oauth2/authorize][*]
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-security-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.