Skip to content

OpenAPI Specification

Chris Day edited this page Feb 1, 2026 · 1 revision

OpenAPI / Swagger Specification

Purpose

Explain how the OpenAPI 3.1 spec is modeled and how to use it for tooling and validation.

API base URL

https://data.bioontology.org

Security schemes

The API uses an API key provided via:

  • Query parameter apikey
  • Header Authorization: apikey token=YOUR_KEY

Download and use the OpenAPI YAML

The repo ships a versioned openapi.yaml under openapi/. Use it with:

  • Swagger UI
  • Redoc
  • Postman

Swagger UI / Redoc / Postman usage

  1. Import openapi.yaml.
  2. Configure the API key.
  3. Use sample endpoints like /search and /ontologies.

Schema modeling approach

  • JSON-LD fields (@id, @type, @context) are represented explicitly.
  • Hypermedia links are modeled as objects with relation URLs.
  • List endpoints expose collection and paging metadata.

Assumptions (where official docs are implicit)

  • Default content type is JSON-LD, even if clients treat it as normal JSON.
  • Paging is supported via page/pagesize and hypermedia links.
  • Annotator and Recommender do not support include expansions.

Clone this wiki locally