This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git
The following commit(s) were added to refs/heads/main by this push: new 54bf9d3 feat: openapi contract first 54bf9d3 is described below commit 54bf9d334bb5dd1945f1c8d2c1d5b8bbdddc5ede Author: Pasquale Congiusti <pasquale.congiu...@gmail.com> AuthorDate: Thu Nov 7 18:35:35 2024 +0100 feat: openapi contract first --- generic-examples/openapi/README.md | 2 +- generic-examples/openapi/greetings.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/generic-examples/openapi/README.md b/generic-examples/openapi/README.md index 05a16c1..5033ef7 100644 --- a/generic-examples/openapi/README.md +++ b/generic-examples/openapi/README.md @@ -8,7 +8,7 @@ Deploy the examples running ``` kubectl create configmap my-openapi --from-file=greetings-api.json -kamel run --dev --name greetings --open-api configmap:my-openapi greetings.yaml +kamel run greetings.yaml --resource configmap:my-openapi --dev ``` If on minikube, you can get the service endpoint address like this ... diff --git a/generic-examples/openapi/greetings.yaml b/generic-examples/openapi/greetings.yaml index 8ceac09..0e0d188 100644 --- a/generic-examples/openapi/greetings.yaml +++ b/generic-examples/openapi/greetings.yaml @@ -17,6 +17,10 @@ # limitations under the License. # --------------------------------------------------------------------------- +- rest: + openApi: + specification: greetings-api.json + - from: uri: "direct:greeting-api" steps: