java-camel-server.restConfiguration.mustache Maven / Gradle / Ivy
The newest version!
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) ({{{generatorVersion}}}).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package {{apiPackage}};
import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;
import org.apache.camel.model.rest.RestBindingMode;
@Component
public class RestConfiguration extends RouteBuilder {
@Override
public void configure() throws Exception {
restConfiguration()
.scheme("{{scheme}}")
.host("{{host}}")
.component("{{camelRestComponent}}")
.bindingMode(RestBindingMode.{{camelRestBindingMode}}){{#camelDataformatProperties}}
.dataFormatProperty("{{key}}", "{{value}}"){{/camelDataformatProperties}}
.clientRequestValidation({{camelRestClientRequestValidation}})
.apiProperty("api.title", "{{appName}}")
.apiProperty("api.version", "{{appVersion}}");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy