This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets-examples.git
The following commit(s) were added to refs/heads/main by this push: new 15f1224 CAMEL-22121: rest-dsl: Add client response validator 15f1224 is described below commit 15f1224dacfc298b0cd11e8ca182468c60d80dae Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Jun 18 11:20:33 2025 +0200 CAMEL-22121: rest-dsl: Add client response validator --- jbang/open-api-contract-first/README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/jbang/open-api-contract-first/README.md b/jbang/open-api-contract-first/README.md index bf59b5e..bb4d903 100644 --- a/jbang/open-api-contract-first/README.md +++ b/jbang/open-api-contract-first/README.md @@ -4,7 +4,7 @@ This example shows how to do _contrat first_ with Camel and OpenAPI. The `petstore-v3.json` is the OpenAPI contract which we want to implement with Camel. -## Petstore example +## Pet-store example Run the examples running @@ -30,7 +30,10 @@ transfer-encoding: chunked Content-Type: application/json { - "pet": "donald the dock" + "name": "Donald the duck", + "photoUrls": [ + "image.png" + ] } ``` @@ -45,14 +48,17 @@ transfer-encoding: chunked Content-Type: application/json { - "pet": "Jack the cat" + "name": "Jack the cat", + "photoUrls": [ + "cat.jpg" + ] } ``` ## Dummy data -The example will return an empty response if you request non implemented API endpoints. -The petstore has 18 apis, and this example has none implemented. +The example will return an empty response if you request non-implemented API endpoints. +The Pet-store has 18 apis, and this example has none implemented. The returned response is loaded from disk in the `camel-mock` folder, as you can see it has pet/123.json as a file, that will be returned when you call `/myapi/pet/123`.