Skip to content

fix(engine-rest): replace broken docs links in OpenAPI descriptions - #4100

Merged
kthoms merged 1 commit into
mainfrom
fix/openapi-legacy-rest-doc-links
Nov 16, 2026
Merged

kthoms merged 1 commit into
mainfrom
fix/openapi-legacy-rest-doc-links

Conversation

@kthoms

@kthoms kthoms commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

The documentation link check (operaton/documentation#220) reports 180 broken links from the REST API reference into the docs site. Nearly all of them point to the per-endpoint REST pages of the Camunda docs (${docsUrl}/reference/rest/<resource>/get-query/ etc.), which do not exist in the Operaton docs: the endpoint documentation is the REST API reference itself.

Changes

  • Endpoint links (123 in descriptions): replaced with in-page links to the referenced operation, #tag/<Tag>/operation/<operationId>. They stay within the same version of the reference. Each Camunda page was mapped explicitly to its endpoint (method + path) and resolved to the operationId from the generated spec; the link text was checked against the target's summary.
  • Swapped links: POST /history/process-instance/count linked "Get Process Instances (POST)" to the GET query and "Get Process Instance Count" to itself. Now they point to queryHistoricProcessInstances and getHistoricProcessInstancesCount.
  • Tag externalDocs (51): removed. They pointed to per-tag pages (${docsUrl}/reference/rest/batch/ ...) that do not exist, and the tag descriptions are self-contained. The top-level externalDocs to the REST API overview stays.
  • Incident types (5): /manual/develop/user-guide/process-engine/incidents/#incident-types now uses ${docsUrl}. A link split across two lines in HistoricIncidentDto.ftl is joined, so the URL doesn't break.
  • Other wrong paths: overview/authorization/ → user-guide/process-engine/authorization-service/, bpmn20/events/message-events/ → reference/bpmn20/..., multi-tenancy.md → multi-tenancy/, task-forms/_index/#generated-task-forms → task-forms/#generated-task-forms.

Links inside FreeMarker comments (<#-- Generated From File: ... -->) are left untouched.

Verification

  • ./mvnw -pl engine-rest/engine-rest-openapi verify passes.
  • All 119 in-page links in the generated openapi.json resolve to a tag/operation anchor in the spec.
  • Ran the documentation link checker against the generated spec (.devenv/scripts/check-links.py check --scope internal --rest-api-spec target/classes/openapi.json): 0 REST API "not found" links remain. The one remaining missing anchor (history/#parallel-execution) is fixed in fix(engine-rest): correct parallel history cleanup docs link #4099.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings November 12, 2026 15:53

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. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added the api:rest Changes affecting the REST API label Nov 12, 2026
@kthoms kthoms added this to the 2.2.2 milestone Nov 16, 2026
Most links in the OpenAPI descriptions pointed to the per-endpoint REST
pages of the Camunda docs (`${docsUrl}/reference/rest/<resource>/...`),
which do not exist in the Operaton docs. The endpoint documentation is
the REST API reference itself.

- Link to the referenced operation within the REST API reference
  (`#tag/<Tag>/operation/<operationId>`) instead
- Fix the swapped GET/POST links in POST /history/process-instance/count
- Remove the tag `externalDocs` links to the non-existent per-tag pages
- Fix the incident types links using the old `/manual/develop` path
- Fix links to the authorization, message events, multi-tenancy and
  generated task forms pages

Related to operaton/documentation#220

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kthoms
kthoms force-pushed the fix/openapi-legacy-rest-doc-links branch from 498d1af to a3cb599 Compare November 16, 2026 18:12
@kthoms
kthoms merged commit 26f03b8 into main Nov 16, 2026
5 checks passed
@kthoms
kthoms deleted the fix/openapi-legacy-rest-doc-links branch November 16, 2026 18:13
kthoms added a commit that referenced this pull request Nov 16, 2026
…4100)

Most links in the OpenAPI descriptions pointed to the per-endpoint REST
pages of the Camunda docs (`${docsUrl}/reference/rest/<resource>/...`),
which do not exist in the Operaton docs. The endpoint documentation is
the REST API reference itself.

- Link to the referenced operation within the REST API reference
  (`#tag/<Tag>/operation/<operationId>`) instead
- Fix the swapped GET/POST links in POST /history/process-instance/count
- Remove the tag `externalDocs` links to the non-existent per-tag pages
- Fix the incident types links using the old `/manual/develop` path
- Fix links to the authorization, message events, multi-tenancy and
  generated task forms pages

Related to operaton/documentation#220

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 26f03b8)
@kthoms

kthoms commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-picked to release/2.2.x

@sonarqubecloud

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants