University of the Witwatersrand · API Governance Rules

University of the Witwatersrand API Rules

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

7 Rules error 1 warn 5 info 1
View Rules File View on GitHub

Rule Categories

wits

Rules

warn
wits-info-contact
API info should carry a contact for the Wits library/open scholarship team.
$.info
warn
wits-info-license
Standards-based university APIs should declare a license.
$.info
error
wits-server-https
All servers must use HTTPS.
$.servers[*].url
warn
wits-operation-id
Every operation must declare an operationId.
$.paths[*][get,post,put,delete,patch]
warn
wits-operation-summary
Every operation must have a summary.
$.paths[*][get,post,put,delete,patch]
warn
wits-200-response
Read operations should document a 200 response.
$.paths[*].get.responses
info
wits-tags-defined
Operations should be grouped with tags for navigability.
$.paths[*][get,post,put,delete,patch]

Spectral Ruleset

Raw ↑
---
# Spectral ruleset encoding patterns observed across the machine-readable
# interfaces the University of the Witwatersrand actually operates: WIReDSpace
# DSpace 9.2 REST and OAI-PMH 2.0. The Figshare v2 contract this ruleset was
# originally measured against was vendor-operated and was removed from this repo
# on 2026-08-30. Apply with: spectral lint -r this-file.yml <openapi.yaml>
formats:
  - oas3
rules:
  wits-info-contact:
    description: API info should carry a contact for the Wits library/open scholarship team.
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy
  wits-info-license:
    description: Standards-based university APIs should declare a license.
    severity: warn
    given: $.info
    then:
      field: license
      function: truthy
  wits-server-https:
    description: All servers must use HTTPS.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: "^https://"
  wits-operation-id:
    description: Every operation must declare an operationId.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: operationId
      function: truthy
  wits-operation-summary:
    description: Every operation must have a summary.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: summary
      function: truthy
  wits-200-response:
    description: Read operations should document a 200 response.
    severity: warn
    given: $.paths[*].get.responses
    then:
      field: "200"
      function: truthy
  wits-tags-defined:
    description: Operations should be grouped with tags for navigability.
    severity: info
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: tags
      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/university-of-the-witwatersrand-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.