Uppsala University · API Governance Rules
Uppsala University API Rules
Spectral linting rules defining API design standards and conventions for Uppsala University.
7 Rules
error 3
warn 4
Rule Categories
ucdp
Rules
warn
ucdp-info-contact
API info should include a contact pointing to the UCDP docs.
$.info
error
ucdp-server-defined
A server URL must be defined (UCDP base is ucdpapi.pcr.uu.se).
$.servers
error
ucdp-version-path-param
Dataset paths are versioned and require a required {version} path parameter.
$.paths[?(@property.match(/\/api\//))].get.parameters[?(@.name == 'version')]
warn
ucdp-pagination-params
Dataset operations should expose pagesize and page query parameters.
$.paths[?(@property.match(/\/api\//))].get
error
ucdp-api-token-security
A header API token security scheme (x-ucdp-access-token) must be declared.
$.components.securitySchemes
warn
ucdp-response-envelope
Successful responses should use a paginated envelope (TotalCount, Result).
$.components.schemas[?(@property.match(/APIResponse$/))].properties
warn
ucdp-json-media-type
Operations should advertise an application/json response.
$.paths[?(@property.match(/\/api\//))].get.responses.200.content
Spectral Ruleset
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.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/uppsala-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.