Hello

I have been struggling with Camel Rest + Platform-Http.

As we are running in Spring Boot and use the WebServer anyway for Actuator 
endpoints and stuff, Platform-Http seems the way to go.

We deploy to K8s also using Ingress, therefore our applications have a 
different context path than „root“.

This seems to break the Http-Platform mapping is some way. Path parameters are 
not mapped correctly to Camel’s headers.

// application.properties
server.servlet.context-path=/test
camel.rest.context-path/api

// routebuilder
rest("/message").get("/{param}")

When I call localhost:8080/test/api/message/1234, then the header param is 
„message“.

I have setup a small project to reproduce this. See Github: 
https://github.com/abedurftig/camel-platform-http-path-params


Freundliche Grüße / Best regards



i.A. Arne Bedürftig

Integration Architect | Integration intern EAI (EAI)

IT - Architecture & Integration (AI)



CITTI Handelsgesellschaft mbH & Co. KG

Mühlendamm 1 | 24113 Kiel | Deutschland

Mobil: +49 151 65793604

www.citti.de<http://www.citti.de/> | 
www.chefsculinar.de<http://www.chefsculinar.de/> | 
www.chefsculinar.com<http://www.chefsculinar.com/>



Kommanditgesellschaft: Amtsgericht Kiel HRA 858 KI | Komplementär: CITTI 
Verwaltungsgesellschaft mbH

Amtsgericht Kiel HRB 4417 | Gerichtstand: Kiel

Geschäftsführer: Gerhard Lütje, Dirk Lütje, Christoph Langness, Dr. Frank Scholz
------------------------------------------------------------------------------
Informationen (einschließlich Pflichtangaben und Datenschutzerklärungen) zu 
einzelnen, innerhalb der EU tätigen Gesellschaften und Zweigniederlassungen der 
CITTI-Gruppe finden Sie unter http://www.citti.de/html/pflichtangaben.html. 
Diese E-Mail enthält vertrauliche und/ oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese 
E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail 
ist nicht gestattet.

Please refer to http://www.citti.de/html/pflichtangaben.html for information 
(including mandatory corporate particulars and data protection declarations) on 
selected CITTI branches and group companies registered or incorporated in the 
European Union. This e-mail may contain confidential and/or privileged 
information. If you are not the intended recipient (or have received this 
e-mail in error) please notify the sender immediately and delete this e-mail. 
Any unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
------------------------------------------------------------------------------

Reply via email to