[
https://issues.apache.org/jira/browse/CAMEL-20489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17851617#comment-17851617
]
Claus Ibsen commented on CAMEL-20489:
-------------------------------------
If you use contract first with the new openApi specification file directly then
you can control the server with
apiHost: 'http:myhost:1234`
And you can turn it off with
hostNameResolver: 'none'
By default it uses the host name of the platform-http of the running Camel
application
> camel-openapi-java - Rest configuration for servers
> ---------------------------------------------------
>
> Key: CAMEL-20489
> URL: https://issues.apache.org/jira/browse/CAMEL-20489
> Project: Camel
> Issue Type: Improvement
> Components: camel-rest-openapi
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.x
>
>
> OpenAPI v3 has servers to configure instead of the old basePath stuff
> https://swagger.io/docs/specification/api-host-and-base-path/
> We may want to adjust restConfiguration to allow to configure multiple
> servers so the generated api-doc can include this. Today we can only have 1
> server due to the old v2 stuff.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)