Hi Kamelets are for *routes* and not rest-dsl.
On Sun, Feb 11, 2024 at 6:03 AM Rohan Emmanuel <rohan.emmanue...@gmail.com> wrote: > hi, > i was trying to move the REST dsl mentioned in the snippet below from the > camel-context.xml to the kamelet yaml file.can anyone advice me on how to > do this ? > here, the REST endpoint invokes the ABC service which is defined in the > Kamelet YAML file. was looking to add all camel-related endpoints in the > YAML file. Thanks in advance. > > <rest path="/employee"> > <description>This Context contains route for the verbs delete and > put</description> > <delete consumes="application/json" produces="application/json"> > <responseMessage code="200" message="OK"/> > <to uri="direct:organisation_endpoint-delete"/> > </delete> > ... > .... > <route id="organisation_endpoint-delete"> > <from uri="direct:organisation_endpoint-delete"/> > <to uri="direct:invokeABCService"/> > </route> > > > > -- > Regards, > Rohan Emmanuel > -- Claus Ibsen ----------------- @davsclaus Camel in Action 2: https://www.manning.com/ibsen2