include API information in RestConfiguration Template (#17770)

Include API info in RestConfiguration for java-camel-server mustache template to prevent warning on startup as OpenAPI information can't be created otherwise.
This commit is contained in:
Andreas Zöllner 2024-02-08 04:34:55 +01:00 committed by GitHub
parent 5334014098
commit bc680568c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,8 @@ public class RestConfiguration extends RouteBuilder {
.component("{{camelRestComponent}}")
.bindingMode(RestBindingMode.{{camelRestBindingMode}}){{#camelDataformatProperties}}
.dataFormatProperty("{{key}}", "{{value}}"){{/camelDataformatProperties}}
.clientRequestValidation({{camelRestClientRequestValidation}});
.clientRequestValidation({{camelRestClientRequestValidation}})
.apiProperty("api.title", "{{appName}}")
.apiProperty("api.version", "{{appVersion}}");
}
}
}