Rest path gets printed with 3 '/'s when camel rest component is 'platform-http-main' #1266
Closed
MN-Dheeraj
started this conversation in
General
Replies: 1 comment 2 replies
-
duplicate and closed as not a karavan user question |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I created a route that takes in request through REST component as follows on karavan.
id: route-b2e9
description: Customer Demographic
nodePrefixId: route-6d2
from:
id: from-c2dd
uri: rest
parameters:
method: post
path: /CustomerDemographic
consumes: application/xml
When I make call to this url from postman - http://localhost:8080/CustomerDemographic and read endpoint to log to my DB by this line of code :
String fromUri = exchange.getFromEndpoint().getEndpointBaseUri();
I was getting "platform-http:///CustomerDemographic". I know karavan uses platform-http, but I don't know why I see 3 '/'s in the url instead of one.
When I use servlet as the rest component in my camel-spring boot code, I see it correctly -> servlet:/CustomerDemographic.
But, It is different on karavan.
Best Regards,
MN. Dheeraj
Beta Was this translation helpful? Give feedback.
All reactions