Skip to content

feat(influxdb3): add v3.8 OpenAPI specs for Core and Enterprise#6906

Merged
jstirnaman merged 1 commit intomasterfrom
feat/v3.8-api-specs
Mar 8, 2026
Merged

feat(influxdb3): add v3.8 OpenAPI specs for Core and Enterprise#6906
jstirnaman merged 1 commit intomasterfrom
feat/v3.8-api-specs

Conversation

@jstirnaman
Copy link
Contributor

@jstirnaman jstirnaman commented Mar 8, 2026

Summary

  • Rename InfluxDB 3 Core and Enterprise OpenAPI spec files from ref.yml to influxdb3-core-openapi.yaml and influxdb3-enterprise-openapi.yaml
  • Add download links in the API reference description pointing to /openapi/ static files
  • Copy specs to static/openapi/ for direct download access

Specs generated and renamed in influxdata/docs-tooling/pull/40.
The spec-driven contract test (contract-test.test.js) validates these specs against live servers:

  • Core: 46/46 pass (42 operations + 2 coverage checks + calibration)
  • Enterprise: 53/53 pass (49 operations + 2 coverage checks + calibration)

Test plan

  • Verify API docs build: yarn run build:api-docs
  • Verify download links work in Redoc UI at /influxdb3/core/api/v3/ and /influxdb3/enterprise/api/v3/
  • Verify spec files are accessible at /openapi/influxdb3-core-openapi.yaml and /openapi/influxdb3-enterprise-openapi.yaml

Closes https://github.com/influxdata/DAR/issues/625

Rename Core and Enterprise OpenAPI spec files from ref.yml to
descriptive names (influxdb3-core-openapi.yaml, influxdb3-enterprise-openapi.yaml).
Copy specs to static/openapi/ and add download links in the API description.
@jstirnaman jstirnaman requested a review from a team as a code owner March 8, 2026 21:04
@jstirnaman jstirnaman requested review from Copilot and sanderson and removed request for a team and sanderson March 8, 2026 21:04
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

PR Preview Action v1.4.8
🚀 Deployed preview to https://influxdata.github.io/docs-v2/pr-preview/pr-6906/
on branch gh-pages at 2026-03-08 21:07 UTC

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the InfluxDB 3 Core and Enterprise API reference to use newly generated v3.8 OpenAPI specs, and exposes those specs as downloadable static assets under /openapi/.

Changes:

  • Replaces ref.yml-based v3 specs with influxdb3-*-openapi.yaml specs for Core and Enterprise.
  • Adds explicit download links in the rendered API reference descriptions pointing to /openapi/....
  • Adds static copies of the OpenAPI specs under static/openapi/ for direct download.

Reviewed changes

Copilot reviewed 5 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
static/openapi/influxdb3-enterprise-openapi.yaml Adds Enterprise v3.8 OpenAPI spec as a downloadable static file.
api-docs/influxdb3/enterprise/v3/influxdb3-enterprise-openapi.yaml Adds Enterprise v3.8 OpenAPI spec used by the API docs build.
api-docs/influxdb3/enterprise/v3/content/info.yml Updates the API reference description to link to the downloadable spec.
api-docs/influxdb3/enterprise/.config.yml Points the Enterprise v3 API docs config at the new spec filename.
api-docs/influxdb3/core/v3/content/info.yml Updates the API reference description to link to the downloadable spec.
api-docs/influxdb3/core/.config.yml Points the Core v3 API docs config at the new spec filename.
api-docs/generate-api-docs.sh Keeps Redoc bundling options aligned (no behavioral change intended).

You can also share your feedback on Copilot code review. Take the survey.

apis:
v3@3:
root: v3/ref.yml
root: v3/influxdb3-core-openapi.yaml
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After renaming the v3 spec entrypoint from v3/ref.yml to v3/influxdb3-core-openapi.yaml, there are still repo scripts that reference the old path and will now fail (for example api-docs/getswagger.sh writes to influxdb3/core/v3/ref.yml, and scripts/docs-cli/lib/api-doc-scanner.js reads api-docs/influxdb3/core/v3/ref.yml). Please update those references to the new filename(s) in this PR so tooling stays in sync with the config change.

Suggested change
root: v3/influxdb3-core-openapi.yaml
root: v3/ref.yml

Copilot uses AI. Check for mistakes.
apis:
v3@3:
root: v3/ref.yml
root: v3/influxdb3-enterprise-openapi.yaml
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After renaming the v3 spec entrypoint from v3/ref.yml to v3/influxdb3-enterprise-openapi.yaml, there are still repo scripts that reference the old path and will now fail (for example api-docs/getswagger.sh writes to influxdb3/enterprise/v3/ref.yml, and scripts/docs-cli/lib/api-doc-scanner.js reads api-docs/influxdb3/enterprise/v3/ref.yml). Please update those references to the new filename(s) in this PR so tooling stays in sync with the config change.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot update the scripts to use the new file names

Copy link
Contributor

Copilot AI commented Mar 8, 2026

@jstirnaman I've opened a new pull request, #6907, to work on those changes. Once the pull request is ready, I'll request review from you.

@jstirnaman jstirnaman merged commit e1e7e22 into master Mar 8, 2026
9 checks passed
github-actions bot added a commit that referenced this pull request Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants