University of California, Davis · API Governance Rules

University of California, Davis API Rules

Spectral linting rules defining API design standards and conventions for University of California, Davis.

6 Rules error 2 warn 4
View Rules File View on GitHub

Rule Categories

peaks

Rules

error
peaks-info-title
API info object must carry a title.
$.info
warn
peaks-info-contact
PEAKS publishes an Application Support contact; require a contact object.
$.info
warn
peaks-apikey-security
PEAKS authenticates via an X-Auth-Token API key header; an apiKey security scheme should be defined.
$.components.securitySchemes
warn
peaks-paths-team-scoped
PEAKS resource paths are team-scoped and must include the {teamName} path parameter.
$.paths[?(@property.match(/^\/api\//))]~
warn
peaks-operation-tags
Every operation should be tagged to its resource group (access, keys, equipment, people, spaces, workstations, documents).
$.paths[*][get,post]
error
peaks-operation-responses
Every operation must declare responses.
$.paths[*][get,post]

Spectral Ruleset

Raw ↑
---
x-generated: '2026-08-19'
x-method: derived
x-operator: institution
x-source: openapi/_original/uc-davis-peaks.yaml (https://peaks.ucdavis.edu/swagger/v1/swagger.json)
x-note: Spectral ruleset derived by API Evangelist tooling from the institution's own PEAKS contract. Not published by UC Davis.
# Spectral ruleset encoding observed patterns in the UC Davis CAES PEAKS API.
# Derived from https://peaks.ucdavis.edu/swagger/v1/swagger.json (OpenAPI 3.0.1).
formats:
  - oas3
rules:
  peaks-info-title:
    description: API info object must carry a title.
    severity: error
    given: $.info
    then:
      field: title
      function: truthy

  peaks-info-contact:
    description: PEAKS publishes an Application Support contact; require a contact object.
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy

  peaks-apikey-security:
    description: PEAKS authenticates via an X-Auth-Token API key header; an apiKey security scheme should be defined.
    severity: warn
    given: $.components.securitySchemes
    then:
      field: ApiKey
      function: truthy

  peaks-paths-team-scoped:
    description: PEAKS resource paths are team-scoped and must include the {teamName} path parameter.
    severity: warn
    given: $.paths[?(@property.match(/^\/api\//))]~
    then:
      function: pattern
      functionOptions:
        match: "\\{teamName\\}"

  peaks-operation-tags:
    description: Every operation should be tagged to its resource group (access, keys, equipment, people, spaces, workstations, documents).
    severity: warn
    given: $.paths[*][get,post]
    then:
      field: tags
      function: truthy

  peaks-operation-responses:
    description: Every operation must declare responses.
    severity: error
    given: $.paths[*][get,post]
    then:
      field: responses
      function: truthy

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.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/uc-davis-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.