Skip to content
Advertisement

Tag: spring-camel

Request validation doesn’t happen in camel rest

I am trying to experiment by building some simple API’s with apache camel. The request body for a post request is empty but camel doesn’t return bad request instead it returns 201. Here is what I do; Generate classes from studentreg-api.yaml [This is a valid openapi 3 yaml document] Using camel, spring boot to build REST endpoints Step Configured camel

Apache Camel: Process file line by line

I have a large file that I want to read and process. I don’t want to load it entirely into memory and instead of this I read each line of the file separately and perform actions on it. I’ve come to this implementation during the work: Before starting to read the file I skip header and footer .filter(/*condition for skip

Advertisement