luigidemasi opened a new pull request, #27151:
URL: https://github.com/apache/camel/pull/27151

   # Description
   
   [CAMEL-25201](https://issues.apache.org/jira/browse/CAMEL-25201): allow 
TypeSafe AI services and gateways to expose the supported protocol at a 
configurable path. Add `apiPath` at component and endpoint level, retaining 
`/v1/systemone` as the default. For example, 
`baseUrl=http://localhost:8100/gateway/` with `apiPath=/v1/decision` sends 
requests to `http://localhost:8100/gateway/v1/decision`.
   
   Reuse Camel's URL-joining helper to preserve base-path prefixes and accept 
API paths with or without a leading slash. Reject blank paths and values 
containing a scheme, authority, query or fragment. The semantic adapter 
inherits the component option through its existing managed endpoint, including 
in routes with no TypeSafe AI endpoint. The request and response schema is 
unchanged.
   
   Add HTTP regression coverage for default URLs, custom paths, slash joining, 
endpoint overrides, component properties, semantic-only routes and invalid 
configuration. Update the component documentation and generated metadata.
   
   Validation:
   
   - TypeSafe AI component `verify`: 185 tests passed, including 26 new path 
cases.
   - Regression check: restoring the original client caused all 12 custom-path 
cases to fail; the fixed client passes.
   - Full repository `mvnd clean install -DskipTests` with the build cache 
disabled: all 697 modules passed.
   - Formatting and import sorting passed. `git diff --check` passed for 
handwritten files; generated DSLs retain the generator's existing whitespace 
style. Catalog mirrors and both generated DSLs were verified.
   
   # Target
   
   - [x] Targets `main`.
   
   # Tracking
   
   - [x] Tracked by CAMEL-25201.
   
   # Apache Camel coding standards and style
   
   - [x] Commit subject and body describe the change.
   - [x] Full root `clean install -DskipTests` completed; related generated 
files included.
   
   # AI-assisted contributions
   
   - [x] Commit includes the AI co-authorship trailer.
   
   _AI-generated by Codex via oss-fix-issue on behalf of Luigi De Masi 
(luigidemasi)._
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to