Skip to content

fix(engine-rest): fix broken docs links in generated REST API reference (backport to 2.2.x) - #4005

Merged
kthoms merged 2 commits into
release/2.2.xfrom
backport/fix-rest-api-links-2.2.x
Oct 29, 2026
Merged

kthoms merged 2 commits into
release/2.2.xfrom
backport/fix-rest-api-links-2.2.x

Conversation

@kthoms

@kthoms kthoms commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of #3971 to release/2.2.x.

  • The generated REST API reference linked to https://docs.operaton.org/manual/{version}/..., a URL scheme the current docs site no longer serves — every link 404ed. Fixed the single docsUrl base assignment in engine-rest/engine-rest-openapi/src/main/templates/main.ftl to https://docs.operaton.org/docs/documentation, plus one hardcoded stray /manual/develop/... link and four stray .md# extensions leaking into generated links.
  • Verified against the live docs site and by rebuilding the generated openapi.json (zero docs.operaton.org/manual / .md# occurrences left).

Fixes #3970

Test plan

  • Clean cherry-pick of 091cf6a6f8 and 8adf6ac11d from main onto release/2.2.x, no conflicts
  • Clean-built engine-rest-openapi-generator and engine-rest-openapi modules on this branch
  • Verified generated openapi.json contains zero broken docs.operaton.org/manual or .md# links

kthoms and others added 2 commits October 29, 2026 09:38
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]>
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]>
Copilot AI balanced review requested due to automatic review settings October 29, 2026 08:39

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 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

@kthoms
kthoms merged commit ee62559 into release/2.2.x Oct 29, 2026
16 checks passed
@kthoms
kthoms deleted the backport/fix-rest-api-links-2.2.x branch October 29, 2026 09:01
@kthoms kthoms added this to the 2.2.1 milestone Nov 6, 2026
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 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants