From 3410363f5da2f57213ed42ef28706385337485de Mon Sep 17 00:00:00 2001 From: Adriano Machado <60320+ammachado@users.noreply.github.com> Date: Tue, 30 Jun 2026 16:31:48 -0400 Subject: [PATCH] CAMEL-23863: Fix invalid YAML in rest-api example The rest DSL block nested the GET verbs under an unsupported `steps:` key, which the Camel YAML DSL rejects at parse time. Use the proper `get:` verb list with explicit `to:` targets wiring each verb to its direct route, matching the canonical Camel YAML rest DSL structure. Co-Authored-By: Claude Opus 4.8 --- rest-api/rest-api.camel.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/rest-api/rest-api.camel.yaml b/rest-api/rest-api.camel.yaml index d070e85..65232bd 100644 --- a/rest-api/rest-api.camel.yaml +++ b/rest-api/rest-api.camel.yaml @@ -1,10 +1,12 @@ - rest: path: /api - steps: - - get: - path: /hello - - get: - path: "/hello/{name}" + get: + - path: /hello + to: + uri: direct:hello + - path: "/hello/{name}" + to: + uri: direct:hello-name - route: id: hello from: