University of Lausanne · API Governance Rules

University of Lausanne API Rules

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

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

Rule Categories

unil

Rules

warn
unil-info-contact
API info object should declare a contact pointing back to UNIL.
$.info
error
unil-https-servers
All servers must use HTTPS (UNIL APIs are HTTPS-only).
$.servers[*].url
warn
unil-operation-id
Every operation should declare an operationId.
$.paths[*][get,post,put,patch,delete]
info
unil-pagination-params
List/query operations should expose pagination parameters (SPICA uses page/per_page; DSpace uses page/size).
$.paths[*].get.parameters
warn
unil-json-responses
Successful responses should be served as application/json.
$.paths[*][get].responses.200.content

Spectral Ruleset

Raw ↑
# authorship: generated by API Evangelist tooling from this provider's own OpenAPI
# contracts. Stamped 2026-09-01 by the university pipeline. An unmarked file is
# NOT assumed to be ours -- and it is certainly not the University of Lausanne's.
x-method: derived
extends: [[spectral:oas, off]]
formats:
  - oas3
documentationUrl: https://spica.unil.ch/home/api
rules:
  unil-info-contact:
    description: API info object should declare a contact pointing back to UNIL.
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy
  unil-https-servers:
    description: All servers must use HTTPS (UNIL APIs are HTTPS-only).
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://'
  unil-operation-id:
    description: Every operation should declare an operationId.
    severity: warn
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: operationId
      function: truthy
  unil-pagination-params:
    description: >-
      List/query operations should expose pagination parameters (SPICA uses
      page/per_page; DSpace uses page/size).
    severity: info
    given: $.paths[*].get.parameters
    then:
      function: schema
      functionOptions:
        schema:
          type: array
  unil-json-responses:
    description: Successful responses should be served as application/json.
    severity: warn
    given: $.paths[*][get].responses.200.content
    then:
      function: defined

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-lausanne-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.