Nanyang Technological University · API Governance Rules

Nanyang Technological University API Rules

Spectral linting rules defining API design standards and conventions for Nanyang Technological University.

7 Rules error 2 warn 5
View Rules File View on GitHub

Rule Categories

ntu

Rules

warn
ntu-info-contact
API info should declare a contact for the NTU repository team.
$.info
warn
ntu-info-version
Info version should be present (DR-NTU surfaces platform version).
$.info
error
ntu-https-servers
All NTU server URLs must use HTTPS.
$.servers[*].url
warn
ntu-server-host
Servers should point at an ntu.edu.sg host.
$.servers[*].url
error
ntu-operation-id
Every operation should declare an operationId.
$.paths[*][get,post,put,delete,patch]
warn
ntu-operation-tags
Operations should be tagged for grouping.
$.paths[*][get,post,put,delete,patch]
warn
ntu-2xx-response
Each operation should document a success response.
$.paths[*][get,post,put,delete,patch].responses

Spectral Ruleset

Raw ↑
# x-operator: institution — this ruleset is asserted BY API Evangelist over NTU's
# institution-operated DR-NTU (Data) contracts. It is not published by NTU.
x-generated: '2026-08-19'
x-method: generated
x-source: openapi/ntu-info-api-openapi.yml, openapi/ntu-search-api-openapi.yml
formats:
  - oas3
rules:
  ntu-info-contact:
    description: API info should declare a contact for the NTU repository team.
    given: $.info
    severity: warn
    then:
      field: contact
      function: truthy
  ntu-info-version:
    description: Info version should be present (DR-NTU surfaces platform version).
    given: $.info
    severity: warn
    then:
      field: version
      function: truthy
  ntu-https-servers:
    description: All NTU server URLs must use HTTPS.
    given: $.servers[*].url
    severity: error
    then:
      function: pattern
      functionOptions:
        match: '^https://'
  ntu-server-host:
    description: Servers should point at an ntu.edu.sg host.
    given: $.servers[*].url
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: 'ntu\.edu\.sg'
  ntu-operation-id:
    description: Every operation should declare an operationId.
    given: $.paths[*][get,post,put,delete,patch]
    severity: error
    then:
      field: operationId
      function: truthy
  ntu-operation-tags:
    description: Operations should be tagged for grouping.
    given: $.paths[*][get,post,put,delete,patch]
    severity: warn
    then:
      field: tags
      function: truthy
  ntu-2xx-response:
    description: Each operation should document a success response.
    given: $.paths[*][get,post,put,delete,patch].responses
    severity: warn
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          anyOf:
            - required: ['200']
            - required: ['201']
            - required: ['204']

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/ntu-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.