Skip to content

fix(engine-rest): fix broken docs links in generated REST API reference - #3971

Merged
kthoms merged 2 commits into
mainfrom
issues/fix-rest-api-links
Oct 29, 2026
Merged

kthoms merged 2 commits into
mainfrom
issues/fix-rest-api-links

Conversation

@kthoms

@kthoms kthoms commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The generated REST API reference (https://docs.operaton.org/reference/latest/rest-api/) linked to https://docs.operaton.org/manual/{version}/..., a URL scheme the current docs site no longer serves — every link 404ed.
  • Root cause: the single docsUrl base assignment in engine-rest/engine-rest-openapi/src/main/templates/main.ftl, used by ~1,700 generated links across the whole spec.
  • Fixed docsUrl to point at https://docs.operaton.org/docs/documentation, matching the pattern already used correctly in distro/run/assembly/resources/production.yml. Verified the resulting paths resolve on the live docs site (overview, authentication, error-handling anchor, user-guide pages, bpmn20, spin).
  • Also fixed one hardcoded /manual/develop/... link in paths/process-instance/{id}/modification/post.ftl that bypassed docsUrl entirely, and updated matching examples in the module's README.md.

Note: per-tag externalDocs links in main.ftl (e.g. ${docsUrl}/reference/rest/authorization/) point to per-resource pages that don't exist on the current docs site regardless of base URL — called out as a known follow-up in the issue, not addressed here since it needs a separate decision on target pages (possibly in operaton/documentation).

Related to #3970

Test plan

  • Clean-built engine-rest-openapi-generator and engine-rest-openapi modules
  • Verified generated openapi.json contains zero docs.operaton.org/manual occurrences and ~1,714 correct docs.operaton.org/docs/documentation links
  • Spot-checked resulting URLs against the live docs site (authentication, error-handling anchor, user-guide/process-engine pages, bpmn20, spin all resolve)

The OpenAPI spec generation used a base docs URL of
https://docs.operaton.org/manual/${docsVersion}, a scheme the current
docs site no longer serves. Every generated link built from docsUrl
(close to 1,700 links across the whole REST API reference) 404ed.

Point docsUrl at the current docs site base
(https://docs.operaton.org/docs/documentation), matching the pattern
already used correctly in distro/run/assembly/resources/production.yml.
Also fixes one hardcoded /manual/develop/... link that bypassed docsUrl
entirely.

Fixes #3970

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 18:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@github-actions github-actions Bot added documentation Improvements or additions to documentation api:rest Changes affecting the REST API labels Oct 26, 2026
A few templates built links as \${docsUrl}/.../some-page.md#anchor
instead of \${docsUrl}/.../some-page/#anchor, leaking a literal .md
extension into the generated REST API reference that the live docs
site doesn't serve.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@kthoms kthoms added the backport:patch-release Should be ported back to the latest feature release branch. label Oct 26, 2026
@kthoms kthoms added this to the 2.2.1 milestone Oct 26, 2026
@sonarqubecloud

Copy link
Copy Markdown

@kthoms
kthoms merged commit 75e8c35 into main Oct 29, 2026
13 checks passed
@kthoms
kthoms deleted the issues/fix-rest-api-links branch October 29, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api:rest Changes affecting the REST API backport:patch-release Should be ported back to the latest feature release branch. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants