tree: 82aca79f85169f2c36ff6aaf2140771fd9b7d87b [search]
  1. components/
  2. paths/
  3. openapi.yaml
  4. README.md
docs/openapi/admin-api/README.md

Admin API OpenAPI Source

This directory contains the modular source for the Admin API OpenAPI document.

  • openapi.yaml defines document metadata and references each path and component module.
  • paths/ contains one OpenAPI Path Item per file.
  • components/ contains one reusable OpenAPI component per file, grouped by component type.

Edit these source files rather than docs/en/latest/admin-api.json. Generate the self-contained document after making a change:

make bundle-admin-api-spec

The command uses a pinned Redocly CLI version, resolves all external references, and writes deterministic, formatted JSON to docs/en/latest/admin-api.json. CI runs the same command and fails when the committed bundle is stale.

Generating the bundle requires Node.js 22.12.0 or later and npm. The script invokes @redocly/cli@2.72.1 explicitly so local and CI generation use the same bundler version.

References inside a module are relative to that module. For example, a path module can reference a schema with ../components/schemas/Route.yaml, while one schema can reference another schema in the same directory with ./ResourceId.yaml.