Skip to content

Commit

Permalink
Fixed main-yaml - inlining requires unique routes, partialy fixed ope…
Browse files Browse the repository at this point in the history
…napi-java
  • Loading branch information
JiriOndrusek committed Mar 12, 2024
1 parent a1f550f commit b7ad82a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions integration-tests/main-yaml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-direct</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-seda</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-log</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@
- rest:
get:
- path: "/rest"
to: "direct:echoMethodPath"
to: "seda:choMethodPath"
post:
- path: "/rest"
to: "direct:echoMethodPath"
to: "seda:choMethodPath"
patch:
- path: "/rest"
to: "direct:echoMethodPath"
to: "seda:choMethodPath"
put:
- path: "/rest"
to: "direct:echoMethodPath"
to: "seda:choMethodPath"
delete:
- path: "/rest"
to: "direct:echoMethodPath"
to: "seda:choMethodPath"
head:
- path: "/rest"
to: "direct:echoMethodPath"
to: "seda:choMethodPath"

- route:
id: "rest-route"
from:
uri: "direct:echoMethodPath"
uri: "seda:choMethodPath"
steps:
- setBody:
simple: "${header.CamelHttpMethod}: ${header.CamelHttpPath}"

0 comments on commit b7ad82a

Please sign in to comment.