Skip to content

docs(platform-http): document context-path interaction with server.servlet.context-path - #1981

Merged
Croway merged 1 commit into
apache:mainfrom
Croway:docs/platform-http-rest-context-path
Sep 16, 2026
Merged

Croway merged 1 commit into
apache:mainfrom
Croway:docs/platform-http-rest-context-path

Conversation

@Croway

@Croway Croway commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Why

camel.rest.context-path only prefixes routes defined with the rest() DSL. Spring Boot's own server.servlet.context-path prefixes every request handled by the embedded servlet container, including plain platform-http: consumer routes. The two stack, but this interaction wasn't documented anywhere in the starter docs — it was only verifiable by reading SpringBootPlatformHttpContextPathTest.

What

Adds a "Context path" section to the platform-http starter's hand-maintained doc source (components-starter/camel-platform-http-starter/src/main/docs/platform-http.adoc), explaining the two properties, how they combine, and a worked example matching the existing test.

Docs-only change, no code or generated-file impact.


Claude Code on behalf of Federico Mariani (@Croway)

…rvlet.context-path

camel.rest.context-path only prefixes rest() DSL routes, while Spring
Boot's server.servlet.context-path prefixes every platform-http request
including plain platform-http: consumer routes. The two stack, but this
wasn't documented anywhere and was only verifiable via
SpringBootPlatformHttpContextPathTest.
@Croway
Croway merged commit e3cfca0 into apache:main Sep 16, 2026
4 of 6 checks passed
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.

2 participants