Skip to content

feat: add optional apiPath property for On-Premise support#35

Merged
fdelbrayelle merged 2 commits intomainfrom
feat/custom-api-path
Apr 23, 2026
Merged

feat: add optional apiPath property for On-Premise support#35
fdelbrayelle merged 2 commits intomainfrom
feat/custom-api-path

Conversation

@fdelbrayelle
Copy link
Copy Markdown
Member

Summary

  • Add optional apiPath property to AbstractConfluenceTask (defaults to /wiki/api/v2)
  • Replace hardcoded API path in Create, List, and Update tasks with rendered apiPath
  • Normalize trailing slashes on both serverUrl and apiPath before building URLs

Closes #33

Test plan

  • All 19 existing tests pass (default path unchanged)
  • Verify On-Premise instance works with custom apiPath (e.g., /rest/api)

The API path was hardcoded to /wiki/api/v2 which only works for
Confluence Cloud. Introduce an optional apiPath property (default
/wiki/api/v2) so On-Premise users can override it.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

📦 Artifacts

Name Size Updated Expiration
jar 1.71 MB Apr 23, 26, 6:52:52 AM UTC Apr 30, 26, 6:52:52 AM UTC

🧪 Java Unit Tests

TestsPassed ✅SkippedFailedTime ⏱
Java Tests Report19 ran19 ✅0 ⚠️0 ❌4s 237ms

🔁 Unreleased Commits

6 commits since v1.2.0

SHA Title Author Date
4a3dadc docs: add/update AGENTS.md with clear Why/What François Delbrayelle Apr 18, 26, 7:04:11 AM UTC
6b96435 docs: rewrite AGENTS.md Why section François Delbrayelle Apr 19, 26, 7:43:04 AM UTC
aadd134 docs: normalize README with Why and What François Delbrayelle Apr 19, 26, 8:02:55 AM UTC
f9a894b chore(deps): bump io.kestra.gradle.inject-bom-versions (#32) dependabot[bot] Apr 20, 26, 1:24:57 PM UTC
b222d23 chore(deps): bump io.kestra.gradle.spotless-conventions (#31) dependabot[bot] Apr 20, 26, 1:25:04 PM UTC
ea59b55 chore(deps): bump com.github.ben-manes.versions from 0.53.0 to 0.54.0 (#30) dependabot[bot] Apr 20, 26, 1:25:10 PM UTC

Move serverUrl+apiPath rendering, trailing-slash stripping, and
concatenation into AbstractConfluenceTask.buildApiBaseUrl() so each
subclass uses a single method call instead of duplicated logic.
@fdelbrayelle fdelbrayelle merged commit a80bf4b into main Apr 23, 2026
3 checks passed
@fdelbrayelle fdelbrayelle deleted the feat/custom-api-path branch April 23, 2026 06:56
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.

Support for custom API paths (Confluence On-Premise)

2 participants