University of Calgary · API Governance Rules

University of Calgary API Rules

Spectral linting rules defining API design standards and conventions for University of Calgary.

6 Rules error 2 warn 3 info 1
View Rules File View on GitHub

Rule Categories

ucalgary

Rules

error
ucalgary-info-title
API must declare a title.
$.info
error
ucalgary-info-version
API must declare a version.
$.info
warn
ucalgary-versioned-paths
UCalgary research APIs version their paths under /api/v{N}/ (observed in both the SRS and AuroraX specifications).
$.paths[*]~
warn
ucalgary-operation-summary
Every operation should carry a human-readable summary.
$.paths[*][get,post,put,delete,patch]
warn
ucalgary-operation-tags
Operations should be grouped with at least one tag.
$.paths[*][get,post,put,delete,patch]
info
ucalgary-snake-case-properties
Response/request object properties use snake_case (e.g. data_tree_url, file_time_resolution, instrument_type, display_name).
$.components.schemas[*].properties[*]~

Spectral Ruleset

Raw ↑
extends: []
formats:
  - oas3
documentationUrl: https://api.phys.ucalgary.ca/docs
rules:
  ucalgary-info-title:
    description: API must declare a title.
    severity: error
    given: $.info
    then:
      field: title
      function: truthy
  ucalgary-info-version:
    description: API must declare a version.
    severity: error
    given: $.info
    then:
      field: version
      function: truthy
  ucalgary-versioned-paths:
    description: >-
      UCalgary research APIs version their paths under /api/v{N}/ (observed in
      both the SRS and AuroraX specifications).
    severity: warn
    given: $.paths[*]~
    then:
      function: pattern
      functionOptions:
        match: "^/api(/application\\.wadl.*)?(/v[0-9]+/.*)?$"
  ucalgary-operation-summary:
    description: Every operation should carry a human-readable summary.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: summary
      function: truthy
  ucalgary-operation-tags:
    description: Operations should be grouped with at least one tag.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: tags
      function: truthy
  ucalgary-snake-case-properties:
    description: >-
      Response/request object properties use snake_case (e.g. data_tree_url,
      file_time_resolution, instrument_type, display_name).
    severity: info
    given: $.components.schemas[*].properties[*]~
    then:
      function: pattern
      functionOptions:
        match: "^[a-z0-9]+(_[a-z0-9]+)*$"

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/university-of-calgary-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.