Terrain Discovery Environment API · API Governance Rules
Terrain Discovery Environment API API Rules
Spectral linting rules defining API design standards and conventions for Terrain Discovery Environment API.
8 Rules
error 1
warn 5
info 2
Rule Categories
terrain
Rules
error
terrain-operation-ids-present
All operations must have operationId defined
$.paths.*[get,post,put,patch,delete]
warn
terrain-operation-id-pascal-case
Operation IDs should use PascalCase
$.paths.*[get,post,put,patch,delete].operationId
info
terrain-secured-paths
Authenticated endpoints should be under /secured prefix
$.paths
warn
terrain-tags-required
Each operation should have at least one tag
$.paths.*[get,post,put,patch,delete]
warn
terrain-parameter-descriptions
Parameters should have descriptions
$.paths..parameters[*]
warn
terrain-json-responses
Endpoints should return application/json responses
$.paths.*[get,post,put,patch,delete].responses.*.content
info
terrain-jwt-auth
Terrain uses JWT bearer token or X-Iplant-De-Jwt header authentication
$.components.securitySchemes.*
warn
terrain-kebab-path-params
Path parameter names should use kebab-case
$.paths..parameters[?(@.in == 'path')].name
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/terrain-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.