Skip to content

List the docs API in API Explorer - #4897

Draft
akira28 wants to merge 5 commits into
mainfrom
feature/docs-api-in-api-explorer
Draft

akira28 wants to merge 5 commits into
mainfrom
feature/docs-api-in-api-explorer

Conversation

@akira28

@akira28 akira28 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

API Explorer now lists the docs API itself. The docs-builder docs gain a "Documentation" section in the API catalog, holding only the "Elastic Docs API" card, and a reference at /api/doc/docs-api/, built from the OpenAPI document that #4896 adds.

Affects: API Explorer (docs-builder's own docs)

Base: main. #4896 and #4942 are merged, and docs/docs-api.json is regenerated from the API after #4942, with its examples, code samples and descriptions.

Prompt summary: Add the docs API's spec to the API index of API Explorer. For now, avoid a GitHub Action and use the spec generated locally, so the preview shows it.

Why

API Explorer documents every Elastic REST API except the one behind the docs site itself. With the OpenAPI document from #4896, the docs API can have the same reference pages, so people and agents can read its endpoints, parameters and problem types where they read every other API.

What

  • docs/docs-api.json: the document that GET /docs/_api/v1/openapi.json returns on Publish an OpenAPI document for the docs API and answer errors as RFC 9457 problems #4896. I generated it from the test host and checked the native AOT build serves the same 11 paths.
  • Catalog section: ApiCatalogOrder.DocumentationKeys (docs-api) gives it a "Documentation" section after Orchestration. Before, it fell into the untitled grid of unpinned APIs. ApiCatalogViewModelTests covers the new section.
  • docs/_docset.yml: gains the docs-builder-docs-api entry. Isolated builds drop the docs-builder- prefix, so the reference lives at /api/doc/docs-api/.
  • Spec resolution: because the file is local, API Explorer reads it directly. The S3 version index stays unused for this API.
  • The rendered reference:

Verify

Open the preview at /api/doc/docs-api/, and the catalog at /api/, where "Documentation" follows "Orchestration". Locally:

dotnet run --project src/tooling/docs-builder -c Release -- --output .artifacts/docs-out
ls .artifacts/docs-out/api/doc/docs-api/operation

The build reports no errors and renders 12 operation pages and 5 group pages.

Known limit: the checked-in copy doesn't follow changes to the API. Regenerate it from /docs/_api/v1/openapi.json when endpoints change, until a workflow publishes the document to the same S3 bucket as the other specs.

🤖 Generated with Claude Code

@akira28
akira28 added this pull request to stack #4895 November 17, 2026 14:59
@akira28 akira28 changed the title feature/docs api in api explorer List the docs API in API Explorer Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@akira28
akira28 force-pushed the feature/docs-api-in-api-explorer branch from 15609f6 to 2e36e2d Compare November 17, 2026 15:14
@akira28
akira28 force-pushed the feature/docs-api-in-api-explorer branch from 56dab7f to 838b888 Compare November 17, 2026 15:49
@akira28
akira28 force-pushed the feature/docs-api-in-api-explorer branch from 838b888 to c883123 Compare November 17, 2026 16:26
@akira28
akira28 force-pushed the feature/docs-api-in-api-explorer branch from c883123 to 0217c6d Compare November 18, 2026 09:19
@akira28
akira28 force-pushed the feature/docs-api-in-api-explorer branch from 0217c6d to 8797fd9 Compare November 18, 2026 09:38
@akira28
akira28 force-pushed the feature/docs-api-in-api-explorer branch from 8797fd9 to 71e3adf Compare November 18, 2026 10:00
akira28 and others added 4 commits November 18, 2026 12:55
docs/docs-api.json is the OpenAPI document the API serves at /docs/_api/v1/openapi.json, copied in by hand so the preview can show it. A workflow can publish it later.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The copy follows #4896, where every error is now an RFC 9457 problem.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The catalog grouped it with the unpinned APIs. It now has its own section after Orchestration, listed in ApiCatalogOrder.DocumentationKeys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The copy follows #4887, where /api-operations moved to /apis/{api}/operations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…riptions

Picks up #4942: every operation, parameter and field described, example requests with real responses, and curl samples without the retired cookie.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch was successfully deployed

2 active deployments
docs-preview — 3b7338c8 Deployed Nov 18, 2026 by github-actions[bot]
assembler-preview — 3b7338c8 Deployed Nov 18, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant