I'm having trouble getting started with Apache Camel. I'm trying to make a route which would make a http request to public API. I'm using a ready made project template and all the POM dependencies should be correct. Here's my code for the route:
import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;
@Component
public class Routes extends RouteBuilder {
@Override
public void configure() {
from("https://rata.digitraffic.fi/api/v1/train-
locations/latest/")
.description("Hello world -route")
.log("Hello world!")
.to("mock:out");
}
}
So I'm expecting to get some data from the API but now I'm just getting a build failure.