This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch chore-sync-bundled-examples
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 7fa668c142e8a41b4fb4eb31162e95245f961cd3
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Nov 11 09:20:21 2026 +0100

    chore: camel-jbang - sync the bundled examples: the rest-code-first API 
description names http://localhost:8080 as its server
    
    Synced with mvn -Psync-example-catalog generate-resources from 
camel-jbang-examples main (#136).
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../src/main/resources/examples/contracts/rest-code-first/README.md    | 3 ++-
 .../examples/contracts/rest-code-first/rest-code-first.camel.yaml      | 2 ++
 .../contracts/rest-code-first/test/rest-code-first.citrus.it.yaml      | 2 ++
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/README.md
 
b/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/README.md
index fe96d6caa15e..7044d13078f5 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/README.md
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/README.md
@@ -50,7 +50,8 @@ Stop the example with `ctrl` + `c`.
   JSON text.
 - `apiContextPath: openapi` serves the API description that Camel generates 
from the operations.
   `application.properties` adds `camel-openapi-java` for it, which `camel run` 
does not add by itself for a
-  code-first API.
+  code-first API. `host` and `port` of the REST configuration are the server 
the description names, so a client
+  generated from it calls `http://localhost:8080` (without them it says 
`http://0.0.0.0`).
 - `orders.json` holds the three orders of the shop.
 
 ## Build it step by step
diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/rest-code-first.camel.yaml
 
b/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/rest-code-first.camel.yaml
index b5f0daa22f4d..e0379d4e24fc 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/rest-code-first.camel.yaml
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/rest-code-first.camel.yaml
@@ -3,6 +3,8 @@
 - restConfiguration:
     bindingMode: json
     apiContextPath: openapi
+    host: localhost
+    port: "{{camel.server.port}}"
 
 - rest:
     path: /orders
diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/test/rest-code-first.citrus.it.yaml
 
b/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/test/rest-code-first.citrus.it.yaml
index db0be1ef262b..1bce177901d6 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/test/rest-code-first.citrus.it.yaml
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/resources/examples/contracts/rest-code-first/test/rest-code-first.citrus.it.yaml
@@ -93,3 +93,5 @@ actions:
           - jsonPath:
               - expression: "$.paths['/orders/{id}'].get.operationId"
                 value: "getOrder"
+              - expression: "$.servers[0].url"
+                value: "http://localhost:8080";

Reply via email to