Newcastle University · API Governance Rules

Newcastle University API Rules

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

7 Rules error 1 warn 4 info 2
View Rules File View on GitHub

Rule Categories

newcastle

Rules

warn
newcastle-info-contact
API info object should provide a contact for the Urban Observatory.
$.info
warn
newcastle-info-description
API info object should have a description.
$.info
error
newcastle-servers-https
Urban Observatory servers must be served over HTTPS.
$.servers[*].url
warn
newcastle-operation-operationid
Every operation should declare an operationId (controller.method pattern).
$.paths[*][get,post,put,delete,patch]
warn
newcastle-operation-tags
Operations should be tagged with one of Entity, Feed, Timeseries.
$.paths[*][get,post,put,delete,patch]
info
newcastle-pagination-params
Collection endpoints should accept page and pageSize query parameters.
$.paths[/api/v2.0a/sensors/entity].get.parameters[*].name
info
newcastle-id-format-uuid
Identifier fields ending in Id should be typed as string (UUID).
$.components.schemas[*].properties[?(@property.match(/Id$/))]

Spectral Ruleset

Raw ↑
# Provenance
# generated: 2026-08-30
# method: generated
# source: Authored by API Evangelist as a Spectral ruleset for the Newcastle Urban Observatory
#   OpenAPI. Newcastle University publishes no governance ruleset of its own; this is ours, not
#   theirs, and must not be credited to the institution.
# x-operator: institution
formats:
  - oas3
rules:

  newcastle-info-contact:
    description: API info object should provide a contact for the Urban Observatory.
    given: $.info
    severity: warn
    then:
      field: contact
      function: truthy

  newcastle-info-description:
    description: API info object should have a description.
    given: $.info
    severity: warn
    then:
      field: description
      function: truthy

  newcastle-servers-https:
    description: Urban Observatory servers must be served over HTTPS.
    given: $.servers[*].url
    severity: error
    then:
      function: pattern
      functionOptions:
        match: '^https://'

  newcastle-operation-operationid:
    description: Every operation should declare an operationId (controller.method pattern).
    given: $.paths[*][get,post,put,delete,patch]
    severity: warn
    then:
      field: operationId
      function: truthy

  newcastle-operation-tags:
    description: Operations should be tagged with one of Entity, Feed, Timeseries.
    given: $.paths[*][get,post,put,delete,patch]
    severity: warn
    then:
      field: tags
      function: truthy

  newcastle-pagination-params:
    description: Collection endpoints should accept page and pageSize query parameters.
    given: $.paths[/api/v2.0a/sensors/entity].get.parameters[*].name
    severity: info
    then:
      function: pattern
      functionOptions:
        match: '^(page|pageSize|metric|brokerage:sourceId=\{value\}|meta:\{key\}=\{value\})$'

  newcastle-id-format-uuid:
    description: Identifier fields ending in Id should be typed as string (UUID).
    given: $.components.schemas[*].properties[?(@property.match(/Id$/))]
    severity: info
    then:
      field: type
      function: pattern
      functionOptions:
        match: '^(string|number|integer)$'

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