hi ,
i try to expose rest API , i attach my code, but when i try to invoke it http://localhost:8085/metadata/occupation i got "The connection can't be made" restConfiguration().component("netty4-http").bindingMode(RestBindingMode.json) .dataFormatProperty("prettyPrint", "true") .contextPath("/").port(8085) .apiContextPath("/api-doc") .apiProperty("api.title", "Metadata API").apiProperty("api.version", "1.2.3") .apiProperty("cors", "true"); rest("/metadata").description("Metadata rest service") .consumes("application/json").produces("application/json") .get("/occupation").description("Find all occupation").outTypeList(KeyValueAdditionalNumeric.class) .to("http://alis-dps-bl:8081/metadata/occupations?bridgeEndpoint=true"); -- View this message in context: http://camel.465427.n5.nabble.com/restConfiguration-problem-tp5783095.html Sent from the Camel - Users mailing list archive at Nabble.com.
